mapss.dif.csdf.sdf
Class SDFNodeWeight

java.lang.Object
  extended by mapss.dif.DIFNodeWeight
      extended by mapss.dif.csdf.CSDFNodeWeight
          extended by mapss.dif.csdf.sdf.SDFNodeWeight
All Implemented Interfaces:
java.lang.Cloneable

public class SDFNodeWeight
extends CSDFNodeWeight

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

Version:
$Id: SDFNodeWeight.java 406 2007-05-10 14:27:07Z plishker $
Author:
Shuvra S. Bhattacharyya
See Also:
Node, SDFEdgeWeight

Constructor Summary
SDFNodeWeight()
          Construct an SDF node weight with no computation to be represented by the associated SDF node.
SDFNodeWeight(java.lang.Object computation)
          Construct an SDF node weight given a computation that is to be represented.
SDFNodeWeight(java.lang.Object computation, int instanceNumber)
          Create an SDF node weight given a computation that is to be represented by the SDF node, and a given instance number.
 
Method Summary
 
Methods inherited from class mapss.dif.csdf.CSDFNodeWeight
getInstanceNumber, setInstanceNumber, toString
 
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

SDFNodeWeight

public SDFNodeWeight(java.lang.Object computation,
                     int instanceNumber)
Create an SDF node weight given a computation that is to be represented by the SDF node, and a given instance number. 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. The instance number distinguishes multiple SDF nodes that represent the same computation (e.g., an actor that has been decomposed into multiple units in an intermediate representation, or multiple execution phases of the same subsystem). Instances are numbered consecutively, starting at zero.

Parameters:
computation - The computation to be represented by the SDF node.
instanceNumber - The instance number.

SDFNodeWeight

public SDFNodeWeight(java.lang.Object computation)
Construct an SDF node weight given a computation that is to be represented. Assume this is the first (number 0) instance of the computation.

Parameters:
computation - The computation to be represented by the SDF node.

SDFNodeWeight

public SDFNodeWeight()
Construct an SDF node weight with no computation to be represented by the associated SDF node.

See Also:
SDFNodeWeight(Object, int)