public class Adopt extends PoshDummyElement<Adopt,PoshPlan> implements IParametrizedElement, IConditionElement<Adopt>
| Modifier and Type | Field and Description |
|---|---|
static String |
adName
Property string of competence name
|
static String |
adParams
Property string used for
PropertyChangeEvent when FormalParameters
are changed. |
static DataFlavor |
dataFlavor
Data flavor of adopt class, used for drag-and-drop
|
IDENT_PATTERN| Constructor and Description |
|---|
Adopt(String name,
FormalParameters parameters,
List<Sense> exitCondition,
PrimitiveCall adoptedElement) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCondition(Sense sense) |
TriggeredAction |
getAdoptedElement() |
Trigger<Adopt> |
getCondition()
Get exit condition of the adopt.
|
DataFlavor |
getDataFlavor()
Get data flavour of posh plan element,used during DnD from palette to
PoshScene.
|
Trigger<Adopt> |
getExitCondition() |
List<? extends PoshElement> |
getChildDataNodes()
Get list of children of this node.
|
String |
getName()
Get name of the element.
|
FormalParameters |
getParameters() |
LapType |
getType()
Get type of the element.
|
boolean |
moveChild(int newIndex,
PoshElement child)
Move child to the @newIndex.
|
void |
rename(String newName)
Change name of the element to newName.
|
void |
setName(String name) |
void |
setParameters(FormalParameters newParams)
Set new parameters.
|
getElementId, getUnusedName, isUsedName, moveChildInListaddElementListener, emitChildDeleted, emitChildMove, emitChildNode, firePropertyChange, getElementListeners, getChildId, getChildren, getId, getParent, getRootNode, isChildOfParent, removeElementListener, setParentpublic static final DataFlavor dataFlavor
public static final String adName
public static final String adParams
PropertyChangeEvent when FormalParameters
are changed.public Adopt(String name, FormalParameters parameters, List<Sense> exitCondition, PrimitiveCall adoptedElement)
public FormalParameters getParameters()
getParameters in interface IParametrizedElementpublic void setParameters(FormalParameters newParams)
IParametrizedElementsetParameters in interface IParametrizedElementnewParams - new parameterspublic String getName()
INamedElementgetName in interface INamedElementpublic void setName(String name) throws InvalidNameException, DuplicateNameException, CycleException
public void rename(String newName) throws InvalidNameException, CycleException, DuplicateNameException
INamedElementrename in interface INamedElementnewName - New name of the element.InvalidNameException - Passed name is not valid Yaposh name.CycleException - Renaming causes cycle.DuplicateNameException - Such name is already used in the plan.public void addCondition(Sense sense)
public Trigger<Adopt> getCondition()
getCondition in interface IConditionElement<Adopt>getExitCondition()public TriggeredAction getAdoptedElement()
public DataFlavor getDataFlavor()
PoshElementgetDataFlavor in class PoshElement<Adopt,PoshPlan>public LapType getType()
PoshElementgetType in class PoshElement<Adopt,PoshPlan>public List<? extends PoshElement> getChildDataNodes()
PoshElementgetChildDataNodes in class PoshElement<Adopt,PoshPlan>public boolean moveChild(int newIndex,
PoshElement child)
PoshElementmoveChild in class PoshElement<Adopt,PoshPlan>Copyright © 2018 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All rights reserved.