All Packages Class Hierarchy This Package Previous Next Index
Class examples.network.NetworkSimulation
java.lang.Object
|
+----java.util.Observable
|
+----simula.simset.simulation.Simulation
|
+----examples.network.NetworkSimulation
- public class NetworkSimulation
- extends Simulation
A queueing network model
-
i
- Node index
-
n
- Number of nodes
-
node
- Arrays of stations
-
numthrough
- Movements counter
-
seed
- Seed for random generator
-
simtime
- Simulation length
-
sojourn
- Total time of soujourn in a node
-
uniform
- Random generator
-
NetworkSimulation()
-
-
choice(int, double[])
-
Perform a random selection from a set of alternatives.
-
main(String[])
-
Start the simualtion, instantiating a new Simulation and launching the main program
n
public int n
- Number of nodes
seed
public int seed
- Seed for random generator
numthrough
public int numthrough
- Movements counter
i
public int i
- Node index
sojourn
public double sojourn
- Total time of soujourn in a node
simtime
public double simtime
- Simulation length
node
public Station node[]
- Arrays of stations
uniform
public Uniform uniform
- Random generator
NetworkSimulation
public NetworkSimulation()
choice
public int choice(int n,
double a[]) throws SimulaException
- Perform a random selection from a set of alternatives.
- Parameters:
- n - Upper bound for return
- a - Probabilities dor choiches. Elements must sum up to 1
- Returns:
- 0 with probability a[0]...n with probability a[n]
- Throws: SimulaException
- Any exception from Korretto API
main
public static void main(String args[])
- Start the simualtion, instantiating a new Simulation and launching the main program
- Parameters:
- args[] - Ignored
- See Also:
- Simulation, SimulationMain
All Packages Class Hierarchy This Package Previous Next Index