public final class CompetenceElement extends NamedLapElement<CompetenceElement,Competence>
(move (trigger ((see-player))) move-player)
| Modifier and Type | Field and Description |
|---|---|
static String |
ceComment
Property name of
comment. |
static String |
ceName
Property name of
name. |
static String |
ceRetries
Property name of
retries. |
static DataFlavor |
dataFlavor
Data flavor of competence element, used for drag and drop.
|
static int |
INFINITE_RETRIES
Special value for infinite number of retries.
|
IDENT_PATTERN| Constructor and Description |
|---|
CompetenceElement(String name,
List<Sense> triggerSenses,
PrimitiveCall actionCall,
int retries,
String comment)
Create a choice.
|
| Modifier and Type | Method and Description |
|---|---|
TriggeredAction |
getAction()
Get action of this choice.
|
List<PoshElement> |
getChildDataNodes()
Get list of children of this node.
|
String |
getComment()
Deprecated.
Not supported in the editor.
|
DataFlavor |
getDataFlavor()
Get data flavour of posh plan element,used during DnD from palette to
PoshScene.
|
String |
getName()
Get name of the element.
|
int |
getRetries()
Deprecated.
Remnants of original posh,
|
Trigger<CompetenceElement> |
getTrigger()
Get trigger of this choice.
|
boolean |
moveChild(int newIndex,
PoshElement child)
Move child to the @newIndex.
|
void |
setComment(String newComment)
Deprecated.
Not used in the editor
|
void |
setName(String name)
Set name of this choice.
|
void |
setRetries(int newRetries)
Deprecated.
Not used in the editor
|
String |
toString() |
getUnusedName, isUsedName, moveChildInListaddElementListener, emitChildDeleted, emitChildMove, emitChildNode, firePropertyChange, getElementListeners, getNumberOfChildInstances, getParent, getRootNode, isChildOfParent, removeElementListener, setParentpublic static final String ceName
name.public static final String ceRetries
retries.public static final String ceComment
comment.public static final DataFlavor dataFlavor
public static final int INFINITE_RETRIES
getRetries(),
Constant Field Valuespublic CompetenceElement(String name, List<Sense> triggerSenses, PrimitiveCall actionCall, int retries, String comment)
name - Name of a choicetriggerSenses - List of senses that will trigger the action of this
choiceactionCall - Action call(=action name with arguments), name can be a
normal action, an AP/C name.public Trigger<CompetenceElement> getTrigger()
public TriggeredAction getAction()
public List<PoshElement> getChildDataNodes()
PoshElementgetChildDataNodes in class PoshElement<CompetenceElement,Competence>public String getName()
NamedLapElementgetName in class NamedLapElement<CompetenceElement,Competence>public void setName(String name) throws InvalidNameException, DuplicateNameException
name - new name of this choice.InvalidNameExceptionDuplicateNameExceptionpublic boolean moveChild(int newIndex,
PoshElement child)
PoshElementmoveChild in class PoshElement<CompetenceElement,Competence>public DataFlavor getDataFlavor()
PoshElementgetDataFlavor in class PoshElement<CompetenceElement,Competence>@Deprecated public int getRetries()
@Deprecated public void setRetries(int newRetries)
newRetries - new number of retries. Must be ≥0 or INFINITE_RETRIES.@Deprecated public String getComment()
@Deprecated public void setComment(String newComment)
newComment - New comment of this elementCopyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.