public class BinaryBranch extends Entity
BinaryBranch
is a special branch element with two ports. The
probability of the first port ("output 1") is submitted to the constructor.
Branch
Entity.PortAlias
Modifier and Type | Field and Description |
---|---|
protected SynchronousOutputPort |
firstOutputPort |
protected double |
firstProbability |
protected InputPort |
inputPort |
protected RandomNumberGenerator |
rng |
protected SynchronousOutputPort |
secondOutputPort |
portAliases, ports, simNode
Constructor and Description |
---|
BinaryBranch(double firstProb,
java.lang.String name,
SimNode owner) |
BinaryBranch(double firstProb,
java.lang.String name,
SimNode owner,
RandomNumberGenerator rng) |
Modifier and Type | Method and Description |
---|---|
void |
equalize() |
protected SynchronousOutputPort |
getRandomPort() |
void |
setFirstProbability(double prob) |
addPort, aliasPort, aliasPort, connect, disconnect, getName, getNode, getPortByName, getPorts, isPortKnown, unaliasPort
protected InputPort inputPort
protected SynchronousOutputPort firstOutputPort
protected SynchronousOutputPort secondOutputPort
protected double firstProbability
protected RandomNumberGenerator rng
public BinaryBranch(double firstProb, java.lang.String name, SimNode owner, RandomNumberGenerator rng)
public BinaryBranch(double firstProb, java.lang.String name, SimNode owner)
protected SynchronousOutputPort getRandomPort()
public void setFirstProbability(double prob)
public void equalize()