mapss.dif.csdf.sdf
Class HSDFEdgeWeight

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
                  extended by mapss.dif.csdf.sdf.HSDFEdgeWeight
All Implemented Interfaces:
java.lang.Cloneable

public class HSDFEdgeWeight
extends SingleRateEdgeWeight

Information associated with an HSDF graph edge. HSDFEdgeWeights are objects associated with Edges that represent HSDF edges in HSDFGraphs. HSDF Graphs are special cases of Single Rate Graphs in which the production and consumption rates on its edges are equal to one. This class is intended for use with analysis/synthesis algorithms that operate on HSDF Graphs.

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

Constructor Summary
HSDFEdgeWeight()
          Construct an edge weight for a homogeneous, zero-delay edge.
HSDFEdgeWeight(int delay)
          Construct an edge weight for a given token production/consumption rate, and delay.
 
Method Summary
 void setHSDFConsumptionRate(int tokenRate)
          Set the token production/consumption rate of the associated Single Rate Edge.
 void setHSDFProductionRate(int tokenRate)
          Set the token production/consumption rate of the associated Single Rate Edge.
 
Methods inherited from class mapss.dif.csdf.sdf.SingleRateEdgeWeight
getSingleRate, setSingleConsumptionRate, setSingleProductionRate, setSingleRate
 
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

HSDFEdgeWeight

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


HSDFEdgeWeight

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

Parameters:
delay - The delay associated to this Edge.
Method Detail

setHSDFConsumptionRate

public void setHSDFConsumptionRate(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 to "1" regardless of the tokenRate. This method is to take the ability to set the token consumption/production rate from the user to something else than "1"

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

setHSDFProductionRate

public void setHSDFProductionRate(int tokenRate)
Set the token production/consumption rate of the associated Single Rate Edge. This method and setTokenConsumptionRate are the same and they both set the production and consumption rates to "1" regardless of the tokenRate. This method is to take the ability to set the token consumption/production rate from the user to something else than "1"

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