sdt.df
Class Arc

java.lang.Object
  |
  +--sdt.df.Arc

public class Arc
extends java.lang.Object

Implementation of Arcs in a dataflow graph.


Constructor Summary
Arc()
          Creates an instance of an Arc.
Arc(java.lang.Object v)
          Create an instance of an Arc with specified data values.
 
Method Summary
 java.lang.Object getToken()
          removes the token from the arc.
 boolean hasToken()
          returns if the arc has the tokens
static Arc[] newArray(int n)
          Creates an array of Arcs of required length.
 void putToken(java.lang.Object v)
          places a certain data value in the arc.
 java.lang.Object seeToken()
          examines the token without removing it from the arc.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Arc

public Arc()
Creates an instance of an Arc.

Arc

public Arc(java.lang.Object v)
Create an instance of an Arc with specified data values.
Method Detail

newArray

public static Arc[] newArray(int n)
Creates an array of Arcs of required length.

hasToken

public boolean hasToken()
returns if the arc has the tokens

seeToken

public java.lang.Object seeToken()
examines the token without removing it from the arc.

getToken

public java.lang.Object getToken()
removes the token from the arc.

putToken

public void putToken(java.lang.Object v)
places a certain data value in the arc.