public class TriggeredAction extends NamedLapElement implements Comparable<TriggeredAction>
Modifier and Type | Field and Description |
---|---|
static DataFlavor |
dataFlavor |
static String |
taName |
IDENT_PATTERN
Constructor and Description |
---|
TriggeredAction(Sense.SenseCall actionCall) |
TriggeredAction(String actionName) |
Modifier and Type | Method and Description |
---|---|
void |
addChildDataNode(PoshElement newChild)
This will add new child to the tree.
|
int |
compareTo(TriggeredAction o) |
protected boolean |
detectCycle()
Does this action has a cycle?
Cycle = competence with name X has action with name X or similar situations.
|
Sense.SenseCall |
getActionCall() |
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(PoshElement child,
int relativePosition)
Move child node in list of children up or down.
|
void |
neutralizeChild(PoshElement childNode)
Neutralize childNode of the node.
|
void |
setActionName(String actionName)
Set action function.
|
String |
toString() |
getUnusedName, isUsedName, moveNodeInList
addElementListener, emitChildMove, emitChildNode, emitNodeDeleted, firePropertyChange, getElementListeners, getNumberOfChildInstances, getParent, getRelativePosition, getRootNode, neutralize, remove, removeElementListener, setParent
public static final String taName
public static final DataFlavor dataFlavor
public TriggeredAction(String actionName)
public TriggeredAction(Sense.SenseCall actionCall)
public List<PoshElement> getChildDataNodes()
PoshElement
getChildDataNodes
in class PoshElement
public String getName()
NamedLapElement
getName
in class NamedLapElement
public Sense.SenseCall getActionCall()
protected boolean detectCycle()
public void setActionName(String actionName)
actionName
- public boolean moveChild(PoshElement child, int relativePosition)
PoshElement
moveChild
in class PoshElement
public DataFlavor getDataFlavor()
PoshElement
getDataFlavor
in class PoshElement
public void addChildDataNode(PoshElement newChild)
PoshElement
newChild
can be children (real type or some other things)
and add it to its children. If child is not accepted, don't add it
REMEBER: that in widget view I should see nodes in groups(not Comp, Freq,
Comp), so adjust getChildDataNodes accordingly (Comp, Comp, Freq)addChildDataNode
in class PoshElement
newChild
- Child that may be addedpublic void neutralizeChild(PoshElement childNode)
PoshElement
neutralizeChild
in class PoshElement
childNode
- node that will be neutralizedpublic int compareTo(TriggeredAction o)
compareTo
in interface Comparable<TriggeredAction>
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.