source: trunk/src/org/expeditee/core/EcosystemSpecific.java@ 1097

Last change on this file since 1097 was 1097, checked in by davidb, 6 years ago

Newly structured files from Corey's work on logic/graphics separation

File size: 621 bytes
Line 
1package org.expeditee.core;
2
3import org.expeditee.gio.EcosystemManager;
4import org.expeditee.gio.EcosystemManager.Ecosystem;
5
6/**
7 * This interface should be implemented by any class that can only be used
8 * in a specific set of ecosystems.
9 *
10 * @author cts16
11 */
12public interface EcosystemSpecific
13{
14 /** Whether the class is supported on the given ecosystem. */
15 public boolean isSupportedOnEcosystem(Ecosystem ecosystem);
16
17 /** Whether the class is supported on the current ecosystem. */
18 public default boolean isSupportedOnCurrentEcosystem()
19 {
20 return isSupportedOnEcosystem(EcosystemManager.getType());
21 }
22
23}
Note: See TracBrowser for help on using the repository browser.