vanted.petrinetelements.cpn
Class Action

java.lang.Object
  extended by vanted.petrinetelements.cpn.Action

public class Action
extends java.lang.Object

The Class Action.

Author:
Kevin Pucknat

Constructor Summary
Action(StatementAction stat, java.lang.Object value)
          Instantiates a new action.
Action(java.lang.String action)
          Instantiates a new action.
 
Method Summary
 StatementAction getStatement()
          Gets the statement.
 java.lang.Object getValue()
          Gets the value.
 void setValue(java.lang.Object value)
          Sets the value.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Action

public Action(java.lang.String action)
Instantiates a new action.

Parameters:
action - the action

Action

public Action(StatementAction stat,
              java.lang.Object value)
Instantiates a new action.

Parameters:
stat - the stat
value - the value
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setValue

public void setValue(java.lang.Object value)
Sets the value.

Parameters:
value - the new value

getValue

public java.lang.Object getValue()
Gets the value.

Returns:
the value

getStatement

public StatementAction getStatement()
Gets the statement.

Returns:
the statement