Definition at line 21 of file Action.java.
edu.tum.cs.ias.knowrob.vis.actions.Action.Action | ( | String | iri, |
String | label | ||
) | [inline, protected] |
Constructor. Set the IRI and optionally a label. If none is given, it is initialized with the IRI's short name.
iri | Identifier of this thing. |
Definition at line 59 of file Action.java.
edu.tum.cs.ias.knowrob.vis.actions.Action.Action | ( | OWLClass | ind | ) | [inline, protected] |
Copy constructor: create Action from more generic OWLClass
ind | OWLClass to be copied into this ObjectInstance |
Definition at line 74 of file Action.java.
void edu.tum.cs.ias.knowrob.vis.actions.Action.addSubAction | ( | Action | sub_action | ) | [inline] |
Add an action to the sub-actions listfor this action.
sub_action | action to add |
Definition at line 220 of file Action.java.
void edu.tum.cs.ias.knowrob.vis.actions.Action.addSubActions | ( | LinkedList< Action > | sub_actions | ) | [inline] |
Add multiple actions to the sub-actions list for this action.
sub_actions | List of actions to add to sequence list |
Definition at line 234 of file Action.java.
void edu.tum.cs.ias.knowrob.vis.actions.Action.addTransition | ( | ActionTransition | t | ) | [inline] |
Definition at line 310 of file Action.java.
static Action edu.tum.cs.ias.knowrob.vis.actions.Action.getAction | ( | String | iri, |
String | label | ||
) | [inline, static] |
Action factory. Return existing instance, if available, and create new Action instance if necessary. Avoids duplicate instances with the same IRI.
iri | Identifier of this thing. |
label | Optional natural-language label. |
Definition at line 94 of file Action.java.
static Action edu.tum.cs.ias.knowrob.vis.actions.Action.getAction | ( | String | iri | ) | [inline, static] |
Action factory. Return existing instance, if available, and create new Action instance if necessary. Avoids duplicate instances with the same IRI.
iri | Identifier of this thing. |
Definition at line 115 of file Action.java.
Get information for drawing the action
Definition at line 180 of file Action.java.
Get the currently expanded subsequence
Definition at line 353 of file Action.java.
Map<String, Vector<String> > edu.tum.cs.ias.knowrob.vis.actions.Action.getProperties | ( | ) | [inline] |
Get map of all defined action properties. Convenience method combining values defined as some_values_from and has_value restrictions.
The calue is an array of strings because a property may have multiple values.
Definition at line 130 of file Action.java.
List<String> edu.tum.cs.ias.knowrob.vis.actions.Action.getProperty | ( | String | key | ) | [inline] |
Get property with specified key. Convenience method combining values defined as some_values_from and has_value restrictions.
key | Key of property |
Definition at line 155 of file Action.java.
List<Action> edu.tum.cs.ias.knowrob.vis.actions.Action.getSubActions | ( | ) | [inline] |
Returns the number of sub-actions for this action
Definition at line 190 of file Action.java.
int edu.tum.cs.ias.knowrob.vis.actions.Action.getSubActionsCount | ( | ) | [inline] |
Returns the number of sub-actions for this action
Definition at line 211 of file Action.java.
List<Action> edu.tum.cs.ias.knowrob.vis.actions.Action.getSubActionsRecursive | ( | ) | [inline] |
Definition at line 194 of file Action.java.
Definition at line 318 of file Action.java.
Definition at line 323 of file Action.java.
boolean edu.tum.cs.ias.knowrob.vis.actions.Action.isExpanded | ( | ) | [inline] |
Returns true if the sequence is expanded.
Definition at line 342 of file Action.java.
void edu.tum.cs.ias.knowrob.vis.actions.Action.readFromProlog | ( | ) | [inline] |
Recursively read all properties of this action and all its subactions from Prolog.
Reimplemented from edu::tum::cs::ias::knowrob::owl::OWLClass.
Definition at line 387 of file Action.java.
void edu.tum.cs.ias.knowrob.vis.actions.Action.removeSubAction | ( | Action | sub_action | ) | [inline] |
Remove action from sub-actions list (iterate deeper into sub-action hierarchy if needed)
sub-action | sub-action to remove |
Definition at line 253 of file Action.java.
void edu.tum.cs.ias.knowrob.vis.actions.Action.removeTransition | ( | ActionTransition | t | ) | [inline] |
Definition at line 314 of file Action.java.
void edu.tum.cs.ias.knowrob.vis.actions.Action.setExpandedSequence | ( | Action | sequence | ) | [inline] |
Expand the given action in this actions subsequence
sequence | Subcation to expand |
Definition at line 361 of file Action.java.
void edu.tum.cs.ias.knowrob.vis.actions.Action.toggleExpand | ( | ) | [inline] |
Toggle the expanded value
Definition at line 373 of file Action.java.
void edu.tum.cs.ias.knowrob.vis.actions.Action.writeToProlog | ( | ) | [inline] |
Recursively write all properties of this action and all its sub-actions to Prolog.
Reimplemented from edu::tum::cs::ias::knowrob::owl::OWLClass.
Definition at line 476 of file Action.java.
Holds information for drawing this action. Used to avoid recalculation of position/size for each repainting
Definition at line 48 of file Action.java.
Action edu.tum.cs.ias.knowrob.vis.actions.Action.expandedSequence = null [private] |
reference to currently expanded sequence
Definition at line 41 of file Action.java.
Action edu.tum.cs.ias.knowrob.vis.actions.Action.parentOfSequence = null [private] |
Parent action if this action is in a subsequence
Definition at line 36 of file Action.java.
List<Action> edu.tum.cs.ias.knowrob.vis.actions.Action.sub_actions [private] |
Sub-actions of this action
Definition at line 26 of file Action.java.
Transitions from this action
Definition at line 31 of file Action.java.