vanted.petrinetelements.cpn
Class Guard

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

public class Guard
extends java.lang.Object

The Class Guard.

Author:
Kevin Pucknat

Constructor Summary
Guard(StatementGuard stat, java.lang.Object value)
          Instantiates a new guard.
Guard(java.lang.String guard)
          Instantiates a new guard.
 
Method Summary
 StatementGuard 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

Guard

public Guard(java.lang.String guard)
Instantiates a new guard.

Parameters:
guard - the guard

Guard

public Guard(StatementGuard stat,
             java.lang.Object value)
Instantiates a new guard.

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 StatementGuard getStatement()
Gets the statement.

Returns:
the statement