SimX Classes and Functions Exported from C++
Bases: Boost.Python.instance
Returns the current simulation time. Note that this is the simulation time local to the logical process on which this entity lives.
Bases: Boost.Python.instance
Bases: Boost.Python.instance
simx internal EntityID type
Bases: Boost.Python.instance
returns the data object associated with this input object
Returns profile object associated with this input object
loads services specified in this input object
Bases: Boost.Python.instance
Bases: Boost.Python.instance
Bases: simx.core.core.Entity
Python Entity Class PyEntity(EntityID, LP, EntityInput)
EntityID : id of the Entity being constructed (a python tuple) LP : Reference to the logical process in which this entity lives EntityInput : Input passed to the entity at construction time
Creates services specified in EntityInput on PyEntity
Returns Entity ID
Returns service object residing at the given service address
A method of PyEntity. Installs the service at the given address with the given profile(optional) and data(optional) on this this entity.
Prints memory address of C++ PyEntity object
schedules a message(info) to be sent after ‘delay’ time units to ‘dest_entity’ Message will be handled by service living at address given by ‘dest_service’
Bases: simx.core.core.Service
Bases: Boost.Python.instance
Returns name string of Service object
Returns current simulation time. Note that this is the simulation time local to the logical process on which this service lives.
Returns the random number object associated with this Service
Bases: Boost.Python.instance
Bases: Boost.Python.instance
Gets profile object associated with this input object
Bases: Boost.Python.instance
Bases: Boost.Python.enum
Bases: Boost.Python.instance
Return beta distributed double in range [0, 1). Parameters are alpha and beta shape parameters.
Returns a Cauchy distributed double with scale and location as parameters
Return exponentially distributed double in range [0, infinity). Parameter is the mean.
Return gamma distributed double in range [0, infinity)
Return log-normally distributed double in range (0, infinity). Parameters are mean and standard deviation on logarithmic scale (mean and sd of the underlining normal distr).
Return normally distributed double in range (-infinity, infinity). Parameters are mean and standard deviation.
Returns the number of random streams
Returns the value of the random seed
Return a triangularly distributed double in range [min, max]. Parameters are minimum, maximum and mode.
get_uniform( (TRandom)arg1, (int)arg2, (int)arg3) -> int
get_uniform( (TRandom)arg1, (int)arg2, (int)arg3) -> int
Returns Weibull distributed double with parameters alpha, gamma, mi
Generate and return the random seed based upon system date and time
Sets the number of random streams
Defines the random seed
Creates an Info object from data supplied from Python
Creates a profile dictionary
Creates entities from entity data supplied from Python
Returns handler to the simx Debug level 1 stream
Returns handler to the simx Debug level 2 stream
Returns handler to the simx Debug level 3 stream
Returns handler to the simx Info stream
Returns handler to the simx Error stream
Returns handler to the simx failure stream
Returns the Entity object associated with the given entity Id
Returns the Id of the Logical Process (LP) on which the given entity lives
Returns the minimum delay with which events can be schedules on the local processor
Returns the value of look-ahead in a parallel simulatoin
Returns the value of the simulation clock on this logical process
Returns the number of logical processes. This is usually the same as the number of MPI processes.
Returns the number of MPI processes in a simulation
Returns the processor name on which the calling process is running
Returns the MPI rank of this process
Returns the current simulation phase. Will be one of PHASE_INIT, PHASE_RUN or PHASE_WRAPUP
Initializes the configuration module. This has to be initialized before the configuration values are set.
Initializes MPI communicator
output( (PyService)arg1, (int)arg2, (str)arg3) -> None
Pre-initialization of service
Pre-initialization of all services in the given list of services
Calls the given class method on all the entities of the given class, that live on this logical process
Registers service address
Registers Python Entity class
Registers Python Service class
Calling this function actually starts the simulation. Typically called after initializing the configuration variables, creating entities, etc
Sets (key,value) pairs
Sets the Python event scheduler obejct for staggered creation of simulation events
Sets the time after which the next batch of events will be scheduled
Returns handler to the simx Warn stream