public abstract class CompositeAction extends Action implements Collection<Action>
#execute()
method.Modifier and Type | Field and Description |
---|---|
(package private) LinkedList<Action> |
actions |
Constructor and Description |
---|
CompositeAction(Action... actions) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(Action e) |
boolean |
addAll(Collection<? extends Action> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
Status |
execute(Object... paramValues)
Execute all or some subset of the actions in the order specified by the iterator.
|
String |
getName()
The name of the action should generally be an entry in the ontology subsumed
by the action type.
|
boolean |
isEmpty() |
protected static void |
makeLispCommand(Class<? extends CompositeAction> theClass) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
compareTo, equals, getDefaultIO, getIO, setDefaultIO, setIO, toString
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, hashCode, iterator, parallelStream, removeIf, spliterator, stream
LinkedList<Action> actions
public CompositeAction(Action... actions)
actions
- The actions of this composite action; depending on the subclass this
list may be interpreted as a sequence or a set.public Status execute(Object... paramValues) throws IllegalOperationException, ClassCastException
execute
in class Action
Status
; the value part of the
status should be -ve to indicate failure, 0 to indicate success, ad +ve to
indicate a warning.IllegalOperationException
ClassCastException
public String getName()
Action
public boolean add(Action e)
add
in interface Collection<Action>
public boolean addAll(Collection<? extends Action> c)
addAll
in interface Collection<Action>
public void clear()
clear
in interface Collection<Action>
public boolean contains(Object o)
contains
in interface Collection<Action>
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<Action>
public boolean isEmpty()
isEmpty
in interface Collection<Action>
public boolean remove(Object o)
remove
in interface Collection<Action>
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<Action>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<Action>
public int size()
size
in interface Collection<Action>
public Object[] toArray()
toArray
in interface Collection<Action>
public <T> T[] toArray(T[] a)
toArray
in interface Collection<Action>
protected static void makeLispCommand(Class<? extends CompositeAction> theClass)