|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.amis.pogamut.sposh.elements.PoshElement<THIS,PARENT>
cz.cuni.amis.pogamut.sposh.elements.PoshDummyElement<THIS,PARENT>
cz.cuni.amis.pogamut.sposh.elements.NamedLapElement
cz.cuni.amis.pogamut.sposh.elements.TriggeredAction
public class TriggeredAction
Triggered action is basically a call of some other entity that is supposed to
be executed. The other entity can be action (through IWorkExecutor, Competence
or ActionPattern. The call needs name of a callee and possibly some
arguments to pass.
Competence
or ActionPattern with same name (names of all C and AP are unique,
otherwise they get DuplicateNameException). If there is, the action
will execute the found C/AP. If there is no such C/AP, it assumes that is is
a name of an action so it tries to use IWorkExecutor. If that fails,
stop the bot.
Note that we do not allow cycles (thx to CycleException).
| Field Summary | |
|---|---|
static DataFlavor |
dataFlavor
|
static String |
taArgs
|
static String |
taName
|
| Fields inherited from class cz.cuni.amis.pogamut.sposh.elements.PoshDummyElement |
|---|
IDENT_PATTERN |
| Method Summary | |
|---|---|
PrimitiveCall |
getActionCall()
|
Arguments |
getArguments()
Get arguments of this action. |
List<PoshElement> |
getChildDataNodes()
Get list of children of this node. |
DataFlavor |
getDataFlavor()
Get data flavour of posh plan element,used during DnD from palette to PoshScene. |
String |
getName()
Get name of the element. |
boolean |
moveChild(int newIndex,
PoshElement child)
Move child to the @newIndex. |
void |
setActionName(String newName)
Set name of the action. |
void |
setArguments(Arguments newArguments)
Action basically consists from |
void |
synchronize(TriggeredAction source)
Take @source action and set all properties (name, parameters...) to be same as the @source. |
String |
toString()
|
| Methods inherited from class cz.cuni.amis.pogamut.sposh.elements.PoshDummyElement |
|---|
getUnusedName, isUsedName, moveChildInList |
| Methods inherited from class cz.cuni.amis.pogamut.sposh.elements.PoshElement |
|---|
addElementListener, emitChildDeleted, emitChildMove, emitChildNode, firePropertyChange, getElementListeners, getNumberOfChildInstances, getParent, getRootNode, isChildOfParent, removeElementListener, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final DataFlavor dataFlavor
public static final String taName
public static final String taArgs
| Method Detail |
|---|
public List<PoshElement> getChildDataNodes()
PoshElement
getChildDataNodes in class PoshElementpublic String toString()
toString in class Objectpublic String getName()
NamedLapElement
getName in class NamedLapElementpublic PrimitiveCall getActionCall()
public void setActionName(String newName)
throws InvalidNameException,
CycleException
newName - New name of an action
InvalidNameException - If name is not valid
CycleException - if namechange would cause a cycle.
public boolean moveChild(int newIndex,
PoshElement child)
PoshElement
moveChild in class PoshElementpublic DataFlavor getDataFlavor()
PoshElement
getDataFlavor in class PoshElement
public void synchronize(TriggeredAction source)
throws CycleException
source - The source of the data this action will synchronize to.
CycleExceptionpublic void setArguments(Arguments newArguments)
public Arguments getArguments()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||