|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.viewmanagement.RunLogic
public final class RunLogic
The RunLogic is the central administration of the view management. It keeps track of all the available components, triggers, effects and combinations. On startup, it reads all of them and makes instances available to the other components. It can also be asked to give an instance of a specified component, using e.g. the getTrigger method. Finally it provides with finalize() a way to simply shut down the view management.
Method Summary | |
---|---|
ACombination |
getCombination(String name)
Returns a combination from list combos that matches the given name in the argument. |
HashMap<String,ACombination> |
getCombos()
|
AEffect |
getEffect(String name)
Returns an effect from list effects that matches the given name in the argument. |
List<String> |
getEffectsAsText()
Gives a list of Strings of available effects names |
static RunLogic |
getInstance()
Returns the instance of the RunLogic. |
boolean |
getState()
Returns the state of the RunLogic, true for on, false for off. |
ATrigger |
getTrigger(String name)
Returns a trigger from list triggers that matches the given name in the argument. |
void |
init()
Initializes lists to be used to store available components no getter/setter in class remove setter |
void |
registerListeners()
Method to start the Viewmanagement. |
void |
unregisterListeners()
Method to stop the Viewmanagement. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static RunLogic getInstance()
public void init()
public void registerListeners()
public void unregisterListeners()
public ATrigger getTrigger(String name)
name
- name of trigger to be searched for
public ACombination getCombination(String name)
name
- name of the combination to be searched for
public AEffect getEffect(String name)
name
- of the effect to be searched for
public List<String> getEffectsAsText()
public boolean getState()
public HashMap<String,ACombination> getCombos()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |