|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmapss.dif.DIFEdgeWeight
mapss.dif.mdsdf.MDSDFEdgeWeight
public class MDSDFEdgeWeight
Information associated with an MDSDF edge.
MDSDFEdgeWeights are objects associated with Edges
that represent MDSDF edges in MDSDFGraphs.
This class caches frequently-used data associated with MDSDF edges.
int[], and can support one- to multi-dimensional representation.
The dimensionality of an edge is the maximum dimensionality of production
rate and consumption rate. A zero delay is {0}.
| Constructor Summary | |
|---|---|
MDSDFEdgeWeight()
Construct an edge weight for a homogeneous, zero-delay, one-dimensional edge. |
|
MDSDFEdgeWeight(int[] productionRate,
int[] consumptionRate,
int[] delay)
Construct an edge weight for a specified token production rate, token consumption rate, and delay. |
|
MDSDFEdgeWeight(java.lang.Object sourcePort,
java.lang.Object sinkPort,
int[] productionRate,
int[] consumptionRate,
int[] delay)
Construct an edge weight for a specified source port, sink port, token production rate, token consumption rate, and delay. |
|
| Method Summary | |
|---|---|
int |
getDimensionality()
Calculate the dimensionality of a MDSDF edge, i.e., the maximum dimensionality of production and consumption rates. |
int[] |
getMDSDFConsumptionRate()
Get the MDSDF consumption rate. |
int |
getMDSDFConsumptionRate(int dimension)
Get the consumption rate at dimension dimension. |
int[] |
getMDSDFDelay()
Get the MDSDF delay. |
int |
getMDSDFDelay(int dimension)
Get the delay value at dimension dimension. |
int[] |
getMDSDFProductionRate()
Get the MDSDF production rate. |
int |
getMDSDFProductionRate(int dimension)
Get the production rate at dimension dimension. |
int[] |
getMinIndexSpaceSize()
Get the minimum index space size of this edge in int[]. |
void |
setConsumptionRate(java.lang.Object consumptionRate)
Override DIFEdgeWeight.setConsumptionRate(Object)
to check the type of consumptionRates, and call
#setMDSDFConsumptionRates(int[]) to set the MDSDF consumption
rates. |
void |
setDelay(java.lang.Object delay)
Override DIFEdgeWeight.setDelay(Object)
to check the type of delay, and call
setMDSDFDelay(int[]) to set the MDSDF delay. |
void |
setMDSDFConsumptionRate(int[] consumptionRate)
Set the MDSDF consumption rate. |
void |
setMDSDFConsumptionRate(int dimension,
int consumptionRate)
Set the consumption rate at dimension dimension. |
void |
setMDSDFDelay(int[] delay)
Set the delay of the associated MDSDF edge. |
void |
setMDSDFProductionRate(int[] productionRate)
Set the MDSDF production rate. |
void |
setMDSDFProductionRate(int dimension,
int productionRate)
Set the production rate at dimension dimension. |
void |
setProductionRate(java.lang.Object productionRate)
Override DIFEdgeWeight.setProductionRate(Object)
to check the type of productionRate, and call
setMDSDFProductionRate(int[]) to set the MDSDF production
rate. |
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 MDSDFEdgeWeight()
public MDSDFEdgeWeight(int[] productionRate,
int[] consumptionRate,
int[] delay)
productionRate - The int[] production rate.consumptionRate - The int[] consumption rate.delay - The delay.
public MDSDFEdgeWeight(java.lang.Object sourcePort,
java.lang.Object sinkPort,
int[] productionRate,
int[] consumptionRate,
int[] delay)
sourcePort - The source port.sinkPort - The sink port.productionRate - The int[] production rate.consumptionRate - The int[] consumption rate.delay - The delay.| Method Detail |
|---|
public int getDimensionality()
public int[] getMDSDFConsumptionRate()
int[].public int getMDSDFConsumptionRate(int dimension)
dimension - The dimension.
public int[] getMDSDFProductionRate()
int[].public int getMDSDFProductionRate(int dimension)
dimension - The dimension.
public int[] getMDSDFDelay()
int[].public int getMDSDFDelay(int dimension)
dimension - The dimension.
public int[] getMinIndexSpaceSize()
int[].
The minimum index space size is regardless of multi-dimensional
repetition vectors. The minimum index space size of en edge e
is computed as prd(e,i) * cns(e,i) / gcd ( prd(e,i), cns(e,i) ),
where i is the dimension.
int[].public void setConsumptionRate(java.lang.Object consumptionRate)
DIFEdgeWeight.setConsumptionRate(Object)
to check the type of consumptionRates, and call
#setMDSDFConsumptionRates(int[]) to set the MDSDF consumption
rates.
setConsumptionRate in class DIFEdgeWeightconsumptionRate - The consumption rate in int[].
mocgraph.GraphWeightException - If consumptionRates is not
instanceof int[].public void setDelay(java.lang.Object delay)
DIFEdgeWeight.setDelay(Object)
to check the type of delay, and call
setMDSDFDelay(int[]) to set the MDSDF delay.
setDelay in class DIFEdgeWeightdelay - The delay in int[].
mocgraph.GraphWeightException - If delay is not
instanceof int[].public void setMDSDFConsumptionRate(int[] consumptionRate)
consumptionRate - The MDSDF consumption rate in
int[].
mocgraph.GraphWeightException - If consumption rate in any
dimension is not positive.
public void setMDSDFConsumptionRate(int dimension,
int consumptionRate)
dimension - The dimension.consumptionRate - The new consumption rate.
mocgraph.GraphWeightException - If consumptionRate is not
positive.public void setMDSDFProductionRate(int[] productionRate)
productionRate - The MDSDF production rate in
int[].
mocgraph.GraphWeightException - If production rate in any
dimension is not positive.
public void setMDSDFProductionRate(int dimension,
int productionRate)
dimension - The dimension.productionRate - The new token production rate.
mocgraph.GraphWeightException - If productionRate is not
positive.public void setMDSDFDelay(int[] delay)
delay - The MDSDF delay in int[].
mocgraph.GraphWeightException - If delay in any
dimension is negative.public void setProductionRate(java.lang.Object productionRate)
DIFEdgeWeight.setProductionRate(Object)
to check the type of productionRate, and call
setMDSDFProductionRate(int[]) to set the MDSDF production
rate.
setProductionRate in class DIFEdgeWeightproductionRate - The MDSDF production rate in int[].
mocgraph.GraphWeightException - If productionRate 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 | ||||||||