|
|||||||||
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
mapss.dif.csdf.sdf.SDFEdgeWeight
public class SDFEdgeWeight
Information associated with an SDF edge.
SDFEdgeWeights are objects associated with Edge
s
that represent SDF edges in Graph
s.
This class caches frequently-used data associated with SDF edges.
It is also useful for intermediate SDF 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 SDF models.
Edge
Constructor Summary | |
---|---|
SDFEdgeWeight()
Construct an edge weight for a homogeneous, zero-delay edge. |
|
SDFEdgeWeight(int productionRate,
int consumptionRate,
int delay)
Construct an edge weight for a specified token production rate, token consumption rate, and delay. |
|
SDFEdgeWeight(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 |
getSDFConsumptionRate()
Get the token consumption rate of the associated SDF edge. |
int |
getSDFProductionRate()
Get the token production rate of the associated SDF edge. |
void |
setConsumptionRate(java.lang.Object consumptionRate)
Override DIFEdgeWeight.setConsumptionRate(Object)
to check the type of input object. |
void |
setCSDFConsumptionRates(int[] consumptionRates)
Override CSDFEdgeWeight.setCSDFConsumptionRates(int[])
to prevent illegal usage. |
void |
setCSDFProductionRates(int[] productionRates)
Override CSDFEdgeWeight.setCSDFProductionRates(int[])
to prevent illegal usage. |
void |
setProductionRate(java.lang.Object productionRate)
Override DIFEdgeWeight.setProductionRate(Object)
to check the type of input object. |
void |
setSDFConsumptionRate(int consumptionRate)
Set the token consumption rate of the SDF edge. |
void |
setSDFProductionRate(int productionRate)
Set the token production rate of the SDF edge. |
java.lang.String |
toString()
Return a string representation of the edge weight. |
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 |
---|
public SDFEdgeWeight()
public SDFEdgeWeight(int productionRate, int consumptionRate, int delay)
productionRate
- The token production rate.consumptionRate
- The token consumption rate.delay
- The delay.public SDFEdgeWeight(java.lang.Object sourcePort, java.lang.Object sinkPort, int productionRate, int consumptionRate, int delay)
sourcePort
- The source port.sinkPort
- The sink port.productionRate
- The token production rate.consumptionRate
- The token consumption rate.delay
- The delay.Method Detail |
---|
public int getSDFConsumptionRate()
public int getSDFProductionRate()
public void setConsumptionRate(java.lang.Object consumptionRate)
DIFEdgeWeight.setConsumptionRate(Object)
to check the type of input object.
setConsumptionRate
in class CSDFEdgeWeight
consumptionRate
-
mocgraph.GraphWeightException
- If consumptionRates is not Integer.public void setCSDFConsumptionRates(int[] consumptionRates)
CSDFEdgeWeight.setCSDFConsumptionRates(int[])
to prevent illegal usage.
setCSDFConsumptionRates
in class CSDFEdgeWeight
consumptionRates
-
mocgraph.GraphWeightException
- If consumptionRates contains
multiple elements.public void setCSDFProductionRates(int[] productionRates)
CSDFEdgeWeight.setCSDFProductionRates(int[])
to prevent illegal usage.
setCSDFProductionRates
in class CSDFEdgeWeight
productionRates
-
mocgraph.GraphWeightException
- If productionRates contains
multiple elements.public void setProductionRate(java.lang.Object productionRate)
DIFEdgeWeight.setProductionRate(Object)
to check the type of input object.
setProductionRate
in class CSDFEdgeWeight
productionRate
-
mocgraph.GraphWeightException
- If productionRate is not Integer.public void setSDFConsumptionRate(int consumptionRate)
consumptionRate
- The token consumption rate in
int
.public void setSDFProductionRate(int productionRate)
productionRate
- The new token production rate.public java.lang.String toString()
productionRate consumptionRate delay
toString
in class CSDFEdgeWeight
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |