|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.nexttext.behaviour.AbstractAction net.nexttext.behaviour.control.Multiplexer
public class Multiplexer
The Multiplexer applies a series of Actions in parallel.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface net.nexttext.behaviour.Action |
---|
Action.ActionResult |
Constructor Summary | |
---|---|
Multiplexer()
Create a new Multiplexer with no actions. |
|
Multiplexer(java.util.List<Action> actions)
|
Method Summary | |
---|---|
void |
add(Action action)
Add an action to the Multiplexer. |
Action.ActionResult |
behave(TextObject to)
Apply all the actions to the TextObject. |
void |
complete(TextObject to)
End the multiplexer for this object. |
java.util.Map<java.lang.String,Property> |
getRequiredProperties()
The required properties are the union of all properties in the action chain. |
void |
reset(TextObject to)
Reset the multiplexer. |
Methods inherited from class net.nexttext.behaviour.AbstractAction |
---|
behave, behave, getDisplayName, makeBehaviour, properties, setDisplayName |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Multiplexer(java.util.List<Action> actions)
actions
- a List containing Action objects.public Multiplexer()
Method Detail |
---|
public void add(Action action)
public Action.ActionResult behave(TextObject to)
The results of the called actions are combined using the method described in ActionResult.
behave
in interface Action
behave
in class AbstractAction
public void reset(TextObject to)
public void complete(TextObject to)
complete
in interface Action
complete
in class AbstractAction
public java.util.Map<java.lang.String,Property> getRequiredProperties()
getRequiredProperties
in interface Action
getRequiredProperties
in class AbstractAction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |