Simulation Class

The Simulation Class provides an interface to the Enterprise Architect Model Simulation facilities.

Simulation Attributes

Attribute

Type

Notes

See Also

ObjectType

 

ObjectType

Read only

Distinguishes objects referenced through a Dispatch interface.

 

ObjectType

Speed

 

Long

 

Read/Write

Retrieve or set the current simulation running speed.

 

Run Model Simulation

Simulation Methods

Method

Type

Notes

See Also

BroadcastSignal (
string sSignalName,
string sParameters)

 

Boolean

 

Send a signal into the running simulation. If the simulation is stopped, do nothing.

Parameters:

·sSignalName: String - the name of the signal OR the GUID of the Signal element
·sParameters: String - a string of one or more signal parameters, in the following format

{parameter1 : 5, parameter2 : "test", parameter3 : 3.2}

 

Dynamic Simulation with Javascript

IsSimulatorRunning ()

 

Boolean

 

Check the state of the simulation.

Returns true if the simulation is running; returns false if the simulation is stopped.

 

 

Pause ()

 

Boolean

 

Pause the simulation if it is running.

 

 

 

 

 

 

Run Model Simulation

 

Start ()

 

Boolean

 

Start the simulation based on the current selection. If the current simulation is in a paused state, then the simulation is resumed.

 

StepIn ()

Boolean

Step In to the routine in the current simulation.

 

StepOut ()

Boolean

Step Out of the routine in the current simulation.

 

StepOver ()

Boolean

Step Over the routine in the current simulation.

 

Stop ()

 

Boolean

 

Stop the simulation.

Learn more