Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes
edu.tum.cs.ias.knowrob.vis.actions.Action Class Reference
Inheritance diagram for edu.tum.cs.ias.knowrob.vis.actions.Action:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void addSubAction (Action sub_action)
void addSubActions (LinkedList< Action > sub_actions)
void addTransition (ActionTransition t)
ActionDrawInformation getDrawInfo ()
Action getExpandedSequence ()
Map< String, Vector< String > > getProperties ()
List< String > getProperty (String key)
List< ActiongetSubActions ()
int getSubActionsCount ()
List< ActiongetSubActionsRecursive ()
ActionTransitions getTransitions ()
ActionTransitions getTransitionsRecursive ()
boolean isExpanded ()
void readFromProlog ()
void removeSubAction (Action sub_action)
void removeTransition (ActionTransition t)
void setExpandedSequence (Action sequence)
void toggleExpand ()
void writeToProlog ()

Static Public Member Functions

static Action getAction (String iri, String label)
static Action getAction (String iri)

Protected Member Functions

 Action (String iri, String label)
 Action (OWLClass ind)

Private Attributes

ActionDrawInformation drawInfo
Action expandedSequence = null
Action parentOfSequence = null
List< Actionsub_actions
ActionTransitions transitions

Detailed Description

Definition at line 21 of file Action.java.


Constructor & Destructor Documentation

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.

Parameters:
iriIdentifier of this thing.

Definition at line 59 of file Action.java.

Copy constructor: create Action from more generic OWLClass

Parameters:
indOWLClass to be copied into this ObjectInstance

Definition at line 74 of file Action.java.


Member Function Documentation

Add an action to the sub-actions listfor this action.

Parameters:
sub_actionaction 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.

Parameters:
sub_actionsList of actions to add to sequence list

Definition at line 234 of file Action.java.

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.

Parameters:
iriIdentifier of this thing.
labelOptional natural-language label.
Returns:
Instance of an Action with the specified IRI

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.

Parameters:
iriIdentifier of this thing.
Returns:
Instance of an Action with the specified IRI

Definition at line 115 of file Action.java.

Get information for drawing the action

Returns:
object containing draw information

Definition at line 180 of file Action.java.

Get the currently expanded subsequence

Returns:
Action which is currently expanded

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.

Returns:
list of action properties

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.

Parameters:
keyKey of property
Returns:
Value of property or null if not found

Definition at line 155 of file Action.java.

Returns the number of sub-actions for this action

Returns:
length of sub-actions iterator

Definition at line 190 of file Action.java.

Returns the number of sub-actions for this action

Returns:
length of sub-actions iterator

Definition at line 211 of file Action.java.

Definition at line 194 of file Action.java.

Definition at line 318 of file Action.java.

Definition at line 323 of file Action.java.

Returns true if the sequence is expanded.

Returns:
true if expanded

Definition at line 342 of file Action.java.

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.

Remove action from sub-actions list (iterate deeper into sub-action hierarchy if needed)

Parameters:
sub-actionsub-action to remove

Definition at line 253 of file Action.java.

Definition at line 314 of file Action.java.

Expand the given action in this actions subsequence

Parameters:
sequenceSubcation to expand

Definition at line 361 of file Action.java.

Toggle the expanded value

Definition at line 373 of file Action.java.

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.


Member Data Documentation

Holds information for drawing this action. Used to avoid recalculation of position/size for each repainting

Definition at line 48 of file Action.java.

reference to currently expanded sequence

Definition at line 41 of file Action.java.

Parent action if this action is in a subsequence

Definition at line 36 of file Action.java.

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.


The documentation for this class was generated from the following file:


mod_vis
Author(s): Moritz Tenorth, Jakob Engel
autogenerated on Mon Oct 6 2014 01:30:01