|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmapss.dif.DIFEdgeWeight
mapss.dif.psdf.PSDFEdgeWeight
public class PSDFEdgeWeight
Information associated with a PSDF edge.
PSDFEdgeWeights are objects associated with Edges
that represent PSDF edges in Graphs.
This class caches frequently-used data associated with PSDF edges.
It is also useful for intermediate PSDF graph representations
that do not correspond to Ptolemy II models, and performing graph
analyses (e.g., quasi-static scheduling).
It is intended for use with analysis/synthesis algorithms that operate
on generic graph representations of PSDF models.
Production and consumption rate objects, as well as delay objects,
in PSDFEdgeWeights are
of type Variable. They give the symoblic expressions
(or constant expressions) that correspond to the data rates on the associated
ports. By default, a PSDF edge weight contains production and consumption
rates that are equal to unity, and a zero-valued delay.
Edge,
CSDFEdgeWeight| Constructor Summary | |
|---|---|
PSDFEdgeWeight()
Construct an edge weight for a homogeneous, zero-delay edge. |
|
PSDFEdgeWeight(java.lang.Object sourcePort,
java.lang.Object sinkPort,
ptolemy.data.expr.Variable productionRate,
ptolemy.data.expr.Variable consumptionRate,
ptolemy.data.expr.Variable delay)
Construct an edge weight for a specified source port, sink port, token production rate, token consumption rate, and delay. |
|
PSDFEdgeWeight(ptolemy.data.expr.Variable productionRate,
ptolemy.data.expr.Variable consumptionRate,
ptolemy.data.expr.Variable delay)
Construct an edge weight for a specified token production rate, token consumption rate, and delay. |
|
| Method Summary | |
|---|---|
java.lang.String |
getConsumptionRateExpression()
Get the expression associated with the token consumption rate of the PSDF edge. |
java.lang.String |
getProductionRateExpression()
Get the expression associated with the token production rate of the PSDF edge. |
ptolemy.data.expr.Variable |
getPSDFConsumptionRate()
Get the token consumption rate of the associated PSDF edge. |
ptolemy.data.expr.Variable |
getPSDFDelay()
Get the delay of the associated PSDF edge. |
ptolemy.data.expr.Variable |
getPSDFProductionRate()
Get the token production rate of the associated PSDF edge. |
void |
setConsumptionRateExpression(java.lang.String expression)
Set to a given expression value the expression associated with the token consumption rate of the PSDF edge. |
void |
setProductionRateExpression(java.lang.String expression)
Set to a given expression value the expression associated with the token production rate of the PSDF edge. |
void |
setPSDFConsumptionRate(ptolemy.data.expr.Variable consumptionRate)
Set the token consumption rate of the PSDF edge to the given variable. |
void |
setPSDFDelay(ptolemy.data.expr.Variable delay)
Set the delay of the PSDF edge to the given variable. |
void |
setPSDFProductionRate(ptolemy.data.expr.Variable productionRate)
Set the token production rate of the PSDF edge to the given variable. |
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, setConsumptionRate, setDelay, setProductionRate, setSinkPort, setSourcePort |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PSDFEdgeWeight()
public PSDFEdgeWeight(ptolemy.data.expr.Variable productionRate,
ptolemy.data.expr.Variable consumptionRate,
ptolemy.data.expr.Variable delay)
productionRate - The token production rate.consumptionRate - The token consumption rate.delay - The delay.
public PSDFEdgeWeight(java.lang.Object sourcePort,
java.lang.Object sinkPort,
ptolemy.data.expr.Variable productionRate,
ptolemy.data.expr.Variable consumptionRate,
ptolemy.data.expr.Variable 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 ptolemy.data.expr.Variable getPSDFConsumptionRate()
public ptolemy.data.expr.Variable getPSDFDelay()
public ptolemy.data.expr.Variable getPSDFProductionRate()
public java.lang.String getConsumptionRateExpression()
setConsumptionRateExpression(String).public java.lang.String getProductionRateExpression()
setProductionRateExpression(String).public void setPSDFConsumptionRate(ptolemy.data.expr.Variable consumptionRate)
consumptionRate - The given variable.public void setPSDFDelay(ptolemy.data.expr.Variable delay)
delay - The given variable.public void setPSDFProductionRate(ptolemy.data.expr.Variable productionRate)
productionRate - The given variable.public void setConsumptionRateExpression(java.lang.String expression)
expression - The given expression value.getConsumptionRateExpression().public void setProductionRateExpression(java.lang.String expression)
expression - The given expression value.getProductionRateExpression().public java.lang.String toString()
productionRate consumptionRate delay
toString in class DIFEdgeWeight
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||