|
||||||||||
| 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
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 referenced element 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. |
LapType |
getType()
Get type of the element. |
boolean |
moveChild(int newIndex,
PoshElement child)
Move child to the @newIndex. |
void |
rename(String newName)
XXX: Not implemented, because I don't have a usecase, but interface has it. |
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 |
|---|
getElementId, getUnusedName, isUsedName, moveChildInList |
| Methods inherited from class cz.cuni.amis.pogamut.sposh.elements.PoshElement |
|---|
addElementListener, emitChildDeleted, emitChildMove, emitChildNode, firePropertyChange, getChildId, getChildren, getElementListeners, getId, 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()
INamedElement
getName in interface INamedElementpublic 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 void rename(String newName)
throws InvalidNameException,
CycleException,
DuplicateNameException
rename in interface INamedElementnewName - What will be new name of all actions with old name.
InvalidNameException - Passed name is not valid Yaposh name.
CycleException - Renaming causes cycle.
DuplicateNameException - Such name is already used in the plan.
public boolean moveChild(int newIndex,
PoshElement child)
PoshElement
moveChild in class PoshElementpublic DataFlavor getDataFlavor()
PoshElement
getDataFlavor in class PoshElementpublic LapType getType()
PoshElement
getType 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()
getArguments in interface IReferenceElement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||