mapss.dif.csdf.sdf
Class SingleRateEdgeWeight

java.lang.Object
  extended by mapss.dif.DIFEdgeWeight
      extended by mapss.dif.csdf.CSDFEdgeWeight
          extended by mapss.dif.csdf.sdf.SDFEdgeWeight
              extended by mapss.dif.csdf.sdf.SingleRateEdgeWeight
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
HSDFEdgeWeight

public class SingleRateEdgeWeight
extends SDFEdgeWeight

Information associated with an single rate graph edge. SingleRateEdgeWeights are objects associated with Edges that represent Single Rate edges in Graphs. Single Rate Graphs are special cases of SDF Graphs in which the production and consumption rates on its edges are equal. This graphs are a minor generalization of HSDF graphs. This class is intended for use with analysis/synthesis algorithms that operate on Single Rate SDF Graphs.

Version:
$Id: SingleRateEdgeWeight.java 406 2007-05-10 14:27:07Z plishker $
Author:
Shahrooz Shahparnia
See Also:
Edge, SDFEdgeWeight, HSDFEdgeWeight

Constructor Summary
SingleRateEdgeWeight()
          Construct an edge weight for a homogeneous, zero-delay edge.
SingleRateEdgeWeight(int tokenRate, int delay)
          Construct an edge weight for a given token production/consumption rate, and delay.
 
Method Summary
 int getSingleRate()
          Returns the token production/consumption rate of the associated Single Rate Edge.
 void setSingleConsumptionRate(int tokenRate)
          Set the token production/consumption rate of the associated Single Rate Edge.
 void setSingleProductionRate(int tokenRate)
          Set the tokenproduction/consumption rate of the associated Single Rate Edge.
 void setSingleRate(int tokenRate)
          Set the token production/consumption rate of the associated Single Rate Edge.
 
Methods inherited from class mapss.dif.csdf.sdf.SDFEdgeWeight
getSDFConsumptionRate, getSDFProductionRate, setConsumptionRate, setCSDFConsumptionRates, setCSDFProductionRates, setProductionRate, setSDFConsumptionRate, setSDFProductionRate, toString
 
Methods inherited from class mapss.dif.csdf.CSDFEdgeWeight
consumptionPeriodRate, consumptionPhaseCount, getCSDFConsumptionRate, getCSDFConsumptionRates, getCSDFProductionRate, getCSDFProductionRates, getIntDelay, productionPeriodRate, productionPhaseCount, setCSDFConsumptionRate, setCSDFProductionRate, setDelay, setDelay
 
Methods inherited from class mapss.dif.DIFEdgeWeight
_getConsumptionRate, _getDelay, _getProductionRate, _setConsumptionRate, _setDelay, _setProductionRate, clone, getConsumptionRate, getDelay, getProductionRate, getSinkPort, getSourcePort, setSinkPort, setSourcePort
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SingleRateEdgeWeight

public SingleRateEdgeWeight()
Construct an edge weight for a homogeneous, zero-delay edge.


SingleRateEdgeWeight

public SingleRateEdgeWeight(int tokenRate,
                            int delay)
Construct an edge weight for a given token production/consumption rate, and delay.

Parameters:
tokenRate - The token consumption/production rate of this Edge.
delay - The delay associated to this Edge.
Method Detail

setSingleConsumptionRate

public void setSingleConsumptionRate(int tokenRate)
Set the token production/consumption rate of the associated Single Rate Edge. This method and setTokenProductionRate are the same and they both set the production and consumption rates.

Parameters:
tokenRate - The token consumption/production rate of this Edge.

setSingleProductionRate

public void setSingleProductionRate(int tokenRate)
Set the tokenproduction/consumption rate of the associated Single Rate Edge. This method and setTokenConsumptionRate are the same and they both set the production and consumption rates.

Parameters:
tokenRate - The token consumption/production rate of this Edge.

setSingleRate

public void setSingleRate(int tokenRate)
Set the token production/consumption rate of the associated Single Rate Edge.

Parameters:
tokenRate - The token consumption and production rate of this Edge.

getSingleRate

public int getSingleRate()
Returns the token production/consumption rate of the associated Single Rate Edge.