|
||||||||||
| 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<CompetenceElement,Competence>
cz.cuni.amis.pogamut.sposh.elements.CompetenceElement
public final class CompetenceElement
CompetenceElement is basically one of choices of the competence. It has a name(not used elsewhere in the tree, but unique), trigger and defined action that should be done if the triggers is satisfied.
Example in POSH:(move (trigger ((see-player))) move-player)
| Field Summary | |
|---|---|
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. |
| Fields inherited from class cz.cuni.amis.pogamut.sposh.elements.PoshDummyElement |
|---|
IDENT_PATTERN |
| Constructor Summary | |
|---|---|
CompetenceElement(String name,
List<Sense> triggerSenses,
PrimitiveCall actionCall,
int retries,
String comment)
Create a choice. |
|
| Method Summary | |
|---|---|
TriggeredAction |
getAction()
Get action of this choice. |
String |
getComment()
Deprecated. Not supported in the editor. |
DataFlavor |
getDataFlavor()
Get data flavour of posh plan element,used during DnD from palette to PoshScene. |
List<PoshElement> |
getChildDataNodes()
Get list of children of this node. |
String |
getName()
Get name of the element. |
int |
getRetries()
Deprecated. Remnants of original posh, |
Trigger<CompetenceElement> |
getTrigger()
Get trigger of this choice. |
LapType |
getType()
Get type of the element. |
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()
|
| 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 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 Values| Constructor Detail |
|---|
public 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.| Method Detail |
|---|
public Trigger<CompetenceElement> getTrigger()
public TriggeredAction getAction()
public String toString()
toString in class Objectpublic List<PoshElement> getChildDataNodes()
PoshElement
getChildDataNodes in class PoshElement<CompetenceElement,Competence>public String getName()
NamedLapElement
getName in class NamedLapElement<CompetenceElement,Competence>
public void setName(String name)
throws InvalidNameException,
DuplicateNameException
name - new name of this choice.
InvalidNameException
DuplicateNameException
public boolean moveChild(int newIndex,
PoshElement child)
PoshElement
moveChild in class PoshElement<CompetenceElement,Competence>public DataFlavor getDataFlavor()
PoshElement
getDataFlavor in class PoshElement<CompetenceElement,Competence>public LapType getType()
PoshElement
getType 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 element
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||