|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmapss.dif.DIFNodeWeight
mapss.dif.bdf.BDFNodeWeight
public class BDFNodeWeight
Information associated with an BDF node. BDFNodeWeights are objects
associated with Nodes
that represent BDF nodes in Graphs.
This class caches frequently-used data associated with BDF nodes.
There are two types of BDF node, one is regular node and the other is boolean node. A regular node is restricted to be an SDF node. A boolean node can be a switch or a select.
Node,
BDFEdgeWeight| Constructor Summary | |
|---|---|
BDFNodeWeight()
Construct a regular BDF node. |
|
BDFNodeWeight(java.lang.Object computation)
Construct a regular BDF node weight that is associated with the given computation. |
|
| Method Summary | |
|---|---|
BDFAttributeType |
getBDFNodeType()
Get the type of this node. |
ptolemy.math.Fraction |
getFalseProbability()
Get the probability of false control tokens. |
ptolemy.math.Fraction |
getTrueProbability()
Get the probability of true control tokens. |
void |
setBDFNodeType(BDFAttributeType type)
Set the type of this node. |
void |
setTrueProbability(int numerator,
int denominator)
Set probability of trun control tokens of associated BDFComputation. |
java.lang.String |
toString()
Output BDF node weight information. |
| Methods inherited from class mapss.dif.DIFNodeWeight |
|---|
clone, getComputation, setComputation |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BDFNodeWeight()
public BDFNodeWeight(java.lang.Object computation)
| Method Detail |
|---|
public BDFAttributeType getBDFNodeType()
public ptolemy.math.Fraction getFalseProbability()
public ptolemy.math.Fraction getTrueProbability()
public void setBDFNodeType(BDFAttributeType type)
type - BDFAttributeType.BooleanNode or BDFAttributeType.RegularNode.
public void setTrueProbability(int numerator,
int denominator)
numerator - denominator - public java.lang.String toString()
toString in class DIFNodeWeight
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||