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.
BranchEntity.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,
SimNode ownNode) |
BinaryBranch(double firstProb,
SimNode ownNode,
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, unaliasPortprotected InputPort inputPort
protected SynchronousOutputPort firstOutputPort
protected SynchronousOutputPort secondOutputPort
protected double firstProbability
protected RandomNumberGenerator rng
public BinaryBranch(double firstProb,
SimNode ownNode,
RandomNumberGenerator rng)
public BinaryBranch(double firstProb,
SimNode ownNode)
protected SynchronousOutputPort getRandomPort()
public void setFirstProbability(double prob)
public void equalize()