|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmapss.dif.DIFEdgeWeight
mapss.dif.csdf.CSDFEdgeWeight
public class CSDFEdgeWeight
Information associated with an CSDF edge.
CSDFEdgeWeights are objects associated with Edge
s
that represent CSDF edges in Graph
s.
This class caches frequently-used data associated with CSDF edges.
It is also useful for intermediate CSDF graph representations
that do not correspond to Ptolemy II models, and performing graph
transformations (e.g., vectorization and retiming).
It is intended for use with analysis/synthesis algorithms that operate
on generic graph representations of CSDF models.
Edge
Constructor Summary | |
---|---|
CSDFEdgeWeight()
Construct an edge weight for a homogeneous, zero-delay edge. |
|
CSDFEdgeWeight(int[] productionRates,
int[] consumptionRates,
int delay)
Construct an edge weight for a specified token production rate, token consumption rate, and delay. |
|
CSDFEdgeWeight(java.lang.Object sourcePort,
java.lang.Object sinkPort,
int[] productionRates,
int[] consumptionRates,
int delay)
Construct an edge weight for a specified source port, sink port, token production rate, token consumption rate, and delay. |
Method Summary | |
---|---|
int |
consumptionPeriodRate()
The sum of the token consumption rates over all phases is returned. |
int |
consumptionPhaseCount()
Returns the number of the phases on the consumed end of the edge |
int |
getCSDFConsumptionRate(int phase)
Returns the token consumption rate of the specified phase |
int[] |
getCSDFConsumptionRates()
Get CSDF consumption rates for all phases. |
int |
getCSDFProductionRate(int phase)
Returns the token production rate of the specified phase |
int[] |
getCSDFProductionRates()
Get CSDF production rates for all phases. |
int |
getIntDelay()
Get integer delay value on this edge. |
int |
productionPeriodRate()
The sum of the token production rates over all phases is returned. |
int |
productionPhaseCount()
Returns the number of the phases on the produced end of the edge |
void |
setConsumptionRate(java.lang.Object consumptionRate)
Override DIFEdgeWeight.setConsumptionRate(Object)
to check the type of input object, and call
setCSDFConsumptionRates(int[]) to set the CSDF consumption
rates. |
void |
setCSDFConsumptionRate(int phase,
int consumptionRate)
Set the token consumption rate of the specified phase |
void |
setCSDFConsumptionRates(int[] consumptionRates)
Set the token consumption rates |
void |
setCSDFProductionRate(int phase,
int productionRate)
Set the token production rate of the specified phase |
void |
setCSDFProductionRates(int[] productionRates)
Set the token production rates |
void |
setDelay(int delay)
Set the delay of the associated CSDF edge. |
void |
setDelay(java.lang.Object delay)
Set the delay of the associated CSDF edge. |
void |
setProductionRate(java.lang.Object productionRate)
Override DIFEdgeWeight.setProductionRate(Object)
to check the type of input object, and call
setCSDFProductionRates(int[]) to set the CSDF production
rates. |
java.lang.String |
toString()
Return a string representation of the edge weight. |
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 |
---|
public CSDFEdgeWeight()
public CSDFEdgeWeight(int[] productionRates, int[] consumptionRates, int delay)
productionRates
- The token production rates.consumptionRates
- The token consumption rates.delay
- The delay.public CSDFEdgeWeight(java.lang.Object sourcePort, java.lang.Object sinkPort, int[] productionRates, int[] consumptionRates, int delay)
sourcePort
- The source port.sinkPort
- The sink port.productionRates
- The token production rates.consumptionRates
- The token consumption rates.delay
- The delay.Method Detail |
---|
public int consumptionPeriodRate()
public int consumptionPhaseCount()
public int getCSDFConsumptionRate(int phase)
phase
- The phase.
public int[] getCSDFConsumptionRates()
int[]
.public int getCSDFProductionRate(int phase)
phase
- The phase.
public int[] getCSDFProductionRates()
int[]
.public int getIntDelay()
public int productionPeriodRate()
public int productionPhaseCount()
public void setConsumptionRate(java.lang.Object consumptionRate)
DIFEdgeWeight.setConsumptionRate(Object)
to check the type of input object, and call
setCSDFConsumptionRates(int[])
to set the CSDF consumption
rates.
setConsumptionRate
in class DIFEdgeWeight
consumptionRate
- The new token consumption rates.
mocgraph.GraphWeightException
- If the input object is not instanceof
int[].public void setCSDFConsumptionRates(int[] consumptionRates)
consumptionRates
- The new token consumption rates as an array.public void setCSDFConsumptionRate(int phase, int consumptionRate)
phase
- The phase to modify.consumptionRate
- The new consumption rate.public void setCSDFProductionRates(int[] productionRates)
productionRates
- The new token production rates as an array.public void setCSDFProductionRate(int phase, int productionRate)
phase
- The phase to modify.productionRate
- The new token production rates.public void setDelay(int delay)
delay
- An integer number.public void setDelay(java.lang.Object delay)
setDelay
in class DIFEdgeWeight
delay
- The new Integer delay object.
mocgraph.GraphWeightException
- If runtime type of delay is not
Integer.public void setProductionRate(java.lang.Object productionRate)
DIFEdgeWeight.setProductionRate(Object)
to check the type of input object, and call
setCSDFProductionRates(int[])
to set the CSDF production
rates.
setProductionRate
in class DIFEdgeWeight
productionRate
- The new token production rates.
mocgraph.GraphWeightException
- If the input object is not instanceof
int[].public java.lang.String toString()
[productionRate1 productionRate2 ...] [consumptionRate1 consumptionRate2 ...] delay
toString
in class DIFEdgeWeight
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |