mapss.dif.csdf.sdf
Class SDFNodeWeight
java.lang.Object
mapss.dif.DIFNodeWeight
mapss.dif.csdf.CSDFNodeWeight
mapss.dif.csdf.sdf.SDFNodeWeight
- All Implemented Interfaces:
- java.lang.Cloneable
public class SDFNodeWeight
- extends CSDFNodeWeight
Information associated with an SDF node.
SDFNodeWeight
s are objects associated with Node
s
that represent SDF nodes in Graph
s.
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. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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)