public class Sequence extends Section
| Constructor and Description |
|---|
Sequence(java.util.List<Section> sections) |
| Modifier and Type | Method and Description |
|---|---|
Sequence |
action(Action step)
Extends this sequence with an existing action, returning a new sequence (and not modifying the
existing sequence).
|
<T extends Agent<?>> |
action(java.lang.Class<T> clazz,
SerializableConsumer<T> handler)
Extends this sequence with a new action, returning a new sequence (and not modifying the
existing sequence).
|
static Sequence |
create(Section... sections) |
java.util.List<Section> |
getSections() |
Sequence |
split(Section... sections)
Extends this sequence with a new split, returning a new sequence (and not modifying the
existing sequence).
|
java.util.Set<java.lang.Class<? extends Agent<?>>> |
types()
Return the classes for which this section holds actions.
|
public Sequence(java.util.List<Section> sections)
public java.util.List<Section> getSections()
public java.util.Set<java.lang.Class<? extends Agent<?>>> types()
Sectionpublic <T extends Agent<?>> Sequence action(java.lang.Class<T> clazz, SerializableConsumer<T> handler)
public Sequence action(Action step)