mapss.dif
Class DIFNodeWeight

java.lang.Object
  extended by mapss.dif.DIFNodeWeight
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
BDFNodeWeight, CSDFNodeWeight, MDSDFNodeWeight, PSDFNodeWeight

public class DIFNodeWeight
extends java.lang.Object
implements java.lang.Cloneable

Information associated with an DIF node. DIFNodeWeights are objects associated with Nodes that represent DIF nodes in Graphs. This class caches frequently-used data associated with DIF nodes. It is also useful for representing intermediate DIF graph representations that do not correspond to Ptolemy II models, and performing graph transformations (e.g. conversion to and manipulation of single-rate graphs). It is intended for use with analysis/synthesis algorithms that operate on generic graph representations of DIF models.

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

Constructor Summary
DIFNodeWeight()
          Construct a DIF node weight that is not associated with any computation.
DIFNodeWeight(java.lang.Object computation)
          Construct a DIF node weight that is associated with the given computation.
 
Method Summary
 java.lang.Object clone()
          Overrides the protected method Object.clone().
 java.lang.Object getComputation()
          Return the computation that is represented by the CSDF node.
 void setComputation(java.lang.Object computation)
          Set the computation to be represented by the CSDF node.
 java.lang.String toString()
          Returns the string "DIFNodeWeight".
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DIFNodeWeight

public DIFNodeWeight()
Construct a DIF node weight that is not associated with any computation.


DIFNodeWeight

public DIFNodeWeight(java.lang.Object computation)
Construct a DIF node weight that is associated with the given computation.

Method Detail

clone

public java.lang.Object clone()
Overrides the protected method Object.clone(). It uses Object.clone() to "shallow" copy the fields and returns the cloned version.

Overrides:
clone in class java.lang.Object

getComputation

public java.lang.Object getComputation()
Return the computation that is represented by the CSDF node. Return null if no computation has been associated yet with the node.

Returns:
the represented computation.

setComputation

public void setComputation(java.lang.Object computation)
Set the computation to be represented by the CSDF node.

Parameters:
computation - the computation.

toString

public java.lang.String toString()
Returns the string "DIFNodeWeight".

Overrides:
toString in class java.lang.Object
Returns:
The string "DIFNodeWeight".