|
|||||||||
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.bcsdf.BCSDFEdgeWeight
public class BCSDFEdgeWeight
Information associated with an BCSDF edge.
BCSDFEdgeWeights are objects associated with Edge
s
that represent BCSDF edges in Graph
s.
This class caches frequently-used data associated with BCSDF edges.
It is also useful for intermediate BCSDF 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 BCSDF models.
The BCSDF production and consumption rates are stored as java.util.BitSet.
Edge
Constructor Summary | |
---|---|
BCSDFEdgeWeight()
Construct an edge weight for a homogeneous, zero-delay edge. |
|
BCSDFEdgeWeight(java.util.BitSet productionRates,
java.util.BitSet consumptionRates,
int delay)
Construct an edge weight for a specified token production rate, token consumption rate, and delay. |
|
BCSDFEdgeWeight(int[] productionRates,
int[] consumptionRates,
int delay)
Construct an edge weight for a specified token production rate, token consumption rate, and delay. |
|
BCSDFEdgeWeight(java.lang.Object sourcePort,
java.lang.Object sinkPort,
java.util.BitSet productionRates,
java.util.BitSet 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 |
getBCSDFConsumptionRate(int phase)
Returns the token consumption rate of the specified phase |
int[] |
getBCSDFConsumptionRates()
Get BCSDF consumption rates for all phases. |
int |
getBCSDFProductionRate(int phase)
Returns the token production rate of the specified phase |
int[] |
getBCSDFProductionRates()
Get BCSDF production rates for all phases. |
void |
setBCSDFConsumptionRate(int phase,
boolean consumptionRate)
Set the token consumption rate of the specified phase |
void |
setBCSDFConsumptionRate(int phase,
int consumptionRate)
Set the token consumption rate of the specified phase |
void |
setBCSDFConsumptionRates(java.util.BitSet consBits)
Set the token consumption rates |
void |
setBCSDFConsumptionRates(int[] consumptionRates)
Set the token consumption rates |
void |
setBCSDFProductionRate(int phase,
boolean productionRate)
Set the token production rate of the specified phase |
void |
setBCSDFProductionRate(int phase,
int productionRate)
Set the token production rate of the specified phase |
void |
setBCSDFProductionRates(java.util.BitSet prodBits)
Set the token production rates |
void |
setBCSDFProductionRates(int[] productionRates)
Set the token production rates |
void |
setConsumptionRate(java.lang.Object consumptionRate)
Override DIFEdgeWeight.setConsumptionRate(Object)
to check the type of input object, and call
setBCSDFConsumptionRates(java.util.BitSet) to set the BCSDF consumption
rates. |
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, and call
setBCSDFProductionRates(int[]) to set the BCSDF production
rates. |
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 BCSDFEdgeWeight()
public BCSDFEdgeWeight(java.util.BitSet productionRates, java.util.BitSet consumptionRates, int delay)
productionRates
- The token production rates.consumptionRates
- The token consumption rates.delay
- The delay.public BCSDFEdgeWeight(int[] productionRates, int[] consumptionRates, int delay)
productionRates
- The token production rates.consumptionRates
- The token consumption rates.delay
- The delay.public BCSDFEdgeWeight(java.lang.Object sourcePort, java.lang.Object sinkPort, java.util.BitSet productionRates, java.util.BitSet 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 getBCSDFConsumptionRate(int phase)
phase
- The phase.
public int[] getBCSDFConsumptionRates()
int[]
.public int getBCSDFProductionRate(int phase)
phase
- The phase.
public int[] getBCSDFProductionRates()
int[]
.public void setBCSDFConsumptionRates(java.util.BitSet consBits)
consumptionRates
- The token consumption rates as BitSet.public void setBCSDFConsumptionRates(int[] consumptionRates)
consumptionRates
- The new token consumption rates as an array.public void setBCSDFConsumptionRate(int phase, int consumptionRate)
phase
- The phase to modify.consumptionRate
- The new consumption rate.public void setBCSDFConsumptionRate(int phase, boolean consumptionRate)
phase
- The phase to modify.consumptionRate
- The new consumption rate.public void setBCSDFProductionRates(java.util.BitSet prodBits)
productionRates
- The new token production rates as a BitSet.public void setBCSDFProductionRates(int[] productionRates)
productionRates
- The new token production rates as an array.public void setBCSDFProductionRate(int phase, int productionRate)
phase
- The phase to modify.productionRate
- The new production rate.public void setBCSDFProductionRate(int phase, boolean productionRate)
phase
- The phase to modify.productionRate
- The new production rate.public void setConsumptionRate(java.lang.Object consumptionRate)
DIFEdgeWeight.setConsumptionRate(Object)
to check the type of input object, and call
setBCSDFConsumptionRates(java.util.BitSet)
to set the BCSDF consumption
rates.
setConsumptionRate
in class CSDFEdgeWeight
consumptionRate
- The new token consumption rates.
mocgraph.GraphWeightException
- If the input object is not instanceof
int[] or BitSet.public void setCSDFConsumptionRates(int[] consumptionRates)
CSDFEdgeWeight.setCSDFConsumptionRates(int[])
to prevent illegal usage.
setCSDFConsumptionRates
in class CSDFEdgeWeight
consumptionRates
-
mocgraph.GraphWeightException
public void setCSDFProductionRates(int[] productionRates)
CSDFEdgeWeight.setCSDFProductionRates(int[])
to prevent illegal usage.
setCSDFProductionRates
in class CSDFEdgeWeight
productionRates
-
mocgraph.GraphWeightException
public void setProductionRate(java.lang.Object productionRate)
DIFEdgeWeight.setProductionRate(Object)
to check the type of input object, and call
setBCSDFProductionRates(int[])
to set the BCSDF production
rates.
setProductionRate
in class CSDFEdgeWeight
productionRate
- The new token production rates.
mocgraph.GraphWeightException
- If the input object is not instanceof
int[] or BitSet.public java.lang.String toString()
[productionRate1 productionRate2 ...] [consumptionRate1 consumptionRate2 ...] delay
toString
in class CSDFEdgeWeight
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |