Package cz.zcu.fav.kiv.jsim

This package provides basic classes for simulation creation and execution.

See:
          Description

Class Summary
JSimCalendar The JSimCalendar class holds information about all scheduled events within a J-Sim simulation.
JSimCalendarEvent A JSimCalendarEvent represents one wake-up event in a J-Sim calendar.
JSimHead The JSimHead class is an equivalent of Simula's or C-Sim's HEAD.
JSimLink The JSimLink class is an equivalent of Simula's and C-Sim's LINK.
JSimProcess A JSimProcess is an independent unit of code, having its own data.
JSimSimulation The JSimSimulation class instances represent theoretical simulation models, containing processes, queues, and other elements.
JSimSystem The JSimSystem class provides various services, such as random-numbers generation, version functions, etc.
 

Enum Summary
JSimProcessState Process state can be one of the following constants: New Passive Scheduled Active Blocked on Semaphore Blocked on Message Send Blocked on Message Received Terminated
JSimSimulationMode The simulation mode defines some properties and capabilities of a simulation.
JSimSimulationState During simulation program execution, the simulation object can be in one of the following states: Not Started Yet In Progress Terminated
 

Exception Summary
JSimException The JSimException class is a general exception used by J-Sim to inform user about an error.
JSimInvalidContextException The JSimInvalidContextException is thrown whenever the user tries to call a method that cannot be invoked from the piece of code currently being executed.
JSimInvalidParametersException The JSimInvalidParametersException is thrown whenever a method or a constructor of a J-Sim class receives arguments that cannot be used.
JSimInvalidProcessStateException The JSimInvalidProcessStateException is thrown whenever an attempt is made to change a process's state with JSimProcess.setProcessState() but there is not a transition between the current and the desired state in the graph of J-Sim process states.
JSimKernelPanicException The JSimKernelPanicException is thrown out when a serious error in J-Sim kernel occures.
JSimMethodNotSupportedException The JSimMethodNotSupportedException is thrown whenever the user tries to call a method that is not supported in the current simulation mode.
JSimProcessDeath The JSimProcessDeath class is an internal J-Sim exception used when a process is killed by the simulation.
JSimSecurityException The JSimSecurityException is thrown whenever the user tries to execute an action that is forbidden in the current simulation context.
JSimSimulationAlreadyTerminatedException The JSimSimulationAlreadyTerminatedException is thrown whenever the user attempts to add a new process into a terminated simulation.
JSimTooManyHeadsException The JSimTooManyHeadsException is thrown whenever J-Sim cannot add a new queue (JSimHead) into a simulation.
JSimTooManyProcessesException The JSimTooManyProcessesException is thrown whenever J-Sim cannot add a new process into a simulation.
 

Package cz.zcu.fav.kiv.jsim Description

This package provides basic classes for simulation creation and execution. The basic classes are JSimSimulation, JSimProcess, JSimHead, and JSimLink. You should start with creating a JSimSimulation object. Then, any created JSimProcess or JSimHead shoul have your simulation object as its parent. The activities of your processes are described in their life() methods. The simulation can be executed in a step-by-step manner by repeated invocation of its step() method.

Since:
J-Sim version 0.0.1
See Also:
JSimSimulation, JSimProcess, JSimHead, JSimLink


Copyright © 2000-2006 University of West Bohemia. Licensed under the Academic Free License v. 2.1. Build date 20060812.