public abstract class Section
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Section() |
Modifier and Type | Method and Description |
---|---|
Sequence |
action(Action step)
Fluent method for adding an existing Step to a Section to create a new Sequence
|
<T extends Agent<?>> |
action(java.lang.Class<T> clazz,
SerializableConsumer<T> handler)
Fluent method for adding a step to a Section to create a new Sequence
|
<S extends GlobalState> |
run(AgentSystem<S> system)
Convenience method for running this section on an AgentSystem.
|
Sequence |
split(Section... sections)
Fluent method for adding a split to a Section to create a new Sequence
|
public <T extends Agent<?>> Sequence action(java.lang.Class<T> clazz, SerializableConsumer<T> handler)
public Sequence action(Action step)
public Sequence split(Section... sections)
public <S extends GlobalState> void run(AgentSystem<S> system)