|
||||||||||
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<DriveElement,DriveCollection>
cz.cuni.amis.pogamut.sposh.elements.DriveElement
public final class DriveElement
Drive element (very informative, I know). What is drive? Basically it is a top node of decision tree. It has a trigger and an action. When trigger is satisfied, the drive is elegible to be traversed. Action is just a name, it can be reference (=having same name) to some action, but it can also be reference to C or AP.
In posh it has following syntax(minus variables):
(<name> [<trigger>] <name>)
The first name is name of the element and second name is name of the
action.
In the past, it used to have this form, but not anymore (none knew how to use
it and no need to waste scarce resources to support unused features.)
(<name> [<trigger>] <name> [<freq>] [<comment>])
The drive is elegible for execution if it has satisfied trigger and
it was called less frequently that specified by its frequency (getFreq()
).
Useful to have an idea what is {@link DriveElement} for.
Field Summary | |
---|---|
static DataFlavor |
dataFlavor
Data flavor of drive, used in drag-and-drop |
static String |
deName
Property name for name of a drive |
Fields inherited from class cz.cuni.amis.pogamut.sposh.elements.PoshDummyElement |
---|
IDENT_PATTERN |
Method Summary | |
---|---|
TriggeredAction |
getAction()
Get action of this drive (will be performed if elegible, has satisfied trigger and highest priority). |
List<PoshElement> |
getChildDataNodes()
Get list of children of this node. |
String |
getComment()
Deprecated. Not supported in editor |
DataFlavor |
getDataFlavor()
Get data flavour of posh plan element,used during DnD from palette to PoshScene. |
Freq |
getFreq()
Deprecated. Part of original posh, not supported in editor. |
String |
getName()
Get name of the element. |
Trigger<DriveElement> |
getTrigger()
Get trigger of this drive. |
LapType |
getType()
Get type of the element. |
boolean |
moveChild(int newIndex,
PoshElement child)
Move child to the @newIndex. |
void |
setDriveName(String newName)
Set name of the drive to new name. |
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 String deName
public static final DataFlavor dataFlavor
Method Detail |
---|
public Trigger<DriveElement> getTrigger()
public TriggeredAction getAction()
public String toString()
toString
in class Object
public List<PoshElement> getChildDataNodes()
PoshElement
getChildDataNodes
in class PoshElement<DriveElement,DriveCollection>
public String getName()
INamedElement
getName
in interface INamedElement
public void setDriveName(String newName) throws InvalidNameException, DuplicateNameException
newName
- New name of the drive.
InvalidNameException
- If name doesn't match PoshDummyElement.IDENT_PATTERN
regexp.
DuplicateNameException
public boolean moveChild(int newIndex, PoshElement child)
PoshElement
moveChild
in class PoshElement<DriveElement,DriveCollection>
public DataFlavor getDataFlavor()
PoshElement
getDataFlavor
in class PoshElement<DriveElement,DriveCollection>
public LapType getType()
PoshElement
getType
in class PoshElement<DriveElement,DriveCollection>
@Deprecated public Freq getFreq()
PoshEngine
in each evaluation selects the drive with highest priority that has
satisfied trigger and is being called less frequently, than specified by
the frequency of the drive element.
@Deprecated public String getComment()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |