muskel
Class Dest

java.lang.Object
  extended by muskel.Dest
All Implemented Interfaces:
java.io.Serializable

public class Dest
extends java.lang.Object
implements java.io.Serializable

used to store a destination in compact form, basically and int tuple.

See Also:
Serialized Form

Constructor Summary
Dest(int pp, int ii)
          The dest constructor, to be used when constructing MDF graphs.
Dest(int pp, int ii, int gg)
          The dest constructor
 
Method Summary
 int getGraphId()
          accessory method
 int getIdId()
          accessory method
 int getPos()
          returns the position in the dest instruction input token vector
 java.lang.String toString()
          overwrites Object toString method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Dest

public Dest(int pp,
            int ii,
            int gg)
The dest constructor

Parameters:
pp - position of the dest token in the input vector of the target instruction (positions start at 0)
ii - identifier of the targer instruction. In case the token is destined to the output stream, this is to be a Mdfi.NoInstrId constant.
gg - graph identifier of the target instruction. While construcsting the graph, this should be set to Mdfi.NoGraphId

Dest

public Dest(int pp,
            int ii)
The dest constructor, to be used when constructing MDF graphs. In this case there is no need to specify the graph id, as it will be "relocated" later

Parameters:
pp - position of the dest token in the input vector of the target instruction (positions start at 0)
ii - identifier of the targer instruction. In case the token is destined to the output stream, this is to be a Mdfi.NoInstrId constant.
Method Detail

getPos

public int getPos()
returns the position in the dest instruction input token vector

Returns:
the position in the dest instruction input token vector

getIdId

public int getIdId()
accessory method

Returns:
the destination instruction tag

getGraphId

public int getGraphId()
accessory method

Returns:
the graph id of the target instruciton

toString

public java.lang.String toString()
overwrites Object toString method

Overrides:
toString in class java.lang.Object
Returns:
the string representation of the Dest object