mapss.dif.psdf
Class PSDFNodeWeight

java.lang.Object
  extended by mapss.dif.DIFNodeWeight
      extended by mapss.dif.psdf.PSDFNodeWeight
All Implemented Interfaces:
java.lang.Cloneable

public class PSDFNodeWeight
extends DIFNodeWeight

Information associated with a PSDF node. PSDFNodeWeights are objects associated with Nodes that represent PSDF nodes in Graphs. This class caches frequently-used data associated with PSDF nodes. It is also useful for representing intermediate PSDF graph representations that do not correspond to Ptolemy II models, and performing graph analyses such as quasi-static scheduling. It is intended for use with analysis/synthesis algorithms that operate on generic graph representations of PSDF models.

Version:
$Id: PSDFNodeWeight.java 409 2007-05-13 19:47:16Z plishker $
Author:
Shuvra S. Bhattacharyya
See Also:
Node, DIFNodeWeight, PSDFEdgeWeight

Constructor Summary
PSDFNodeWeight()
          Construct a PSDF node weight with no computation to be represented by the associated PSDF node.
PSDFNodeWeight(java.lang.Object computation)
          Create a PSDF node weight given a computation that is to be represented by the PSDF node.
 
Method Summary
 java.lang.String toString()
          Return a string representation of the PSDF node that is represented by this node weight.
 
Methods inherited from class mapss.dif.DIFNodeWeight
clone, getComputation, setComputation
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PSDFNodeWeight

public PSDFNodeWeight(java.lang.Object computation)
Create a PSDF node weight given a computation that is to be represented by the PSDF node. The computation may be any Object that represents a computation in some way (or null if no computation is to be represented by the node). The represented computation may, for example, be a Ptolemy II AtomicActor.

Parameters:
computation - the computation to be represented by the PSDF node.

PSDFNodeWeight

public PSDFNodeWeight()
Construct a PSDF node weight with no computation to be represented by the associated PSDF node.

Method Detail

toString

public java.lang.String toString()
Return a string representation of the PSDF node that is represented by this node weight.

Overrides:
toString in class DIFNodeWeight
Returns:
the string representation.