Packageimpression.events
Classpublic class SimulationObjectTypes
InheritanceSimulationObjectTypes Inheritance Object

The SimulationObjectTypes class provides static constants for the source property of a SimulationPlayerErrorEvent.



Public Methods
 MethodDefined By
  
fromSource(source:*):String
[static] Returns a string indicating the type of source.
SimulationObjectTypes
Public Constants
 ConstantDefined By
  RULES_ENGINE : String = rules engine
[static] The object implements IRulesEngine.
SimulationObjectTypes
  SEQUENCER : String = sequencer
[static] The object implements ISequencer.
SimulationObjectTypes
  SIMULATION : String = simulation
[static] The object implements ISimulation.
SimulationObjectTypes
  SIMULATION_UI : String = simulation ui
[static] The object implements ISimulationUI.
SimulationObjectTypes
  SNAPSHOT_LOADER : String = snapshot loader
[static] The object implements ISnapshotLoader.
SimulationObjectTypes
  UNKNOWN : String
[static] The object does not implement any known interface in the impression.simulation namespace.
SimulationObjectTypes
Method Detail
fromSource()method
public static function fromSource(source:*):String

Returns a string indicating the type of source.

If source implements more than one of the interfaces in the simulation namespace, the first one (as ordered in the list below) is returned.

Parameters

source:* — The object to determine the type of. source can be one of the following types:
  • ISimulation. This method will return SimulationObjectTypes.SIMULATION.
  • ISimulationUI. This method will return SimulationObjectTypes.SIMULATION_UI.
  • ISnapshotLoader. This method will return SimulationObjectTypes.SNAPSHOT_LOADER.
  • ISequencer. This method will return SimulationObjectTypes.SEQUENCER.
  • IRulesEngine. This method will return SimulationObjectTypes.RULES_ENGINE.
  • String. This method will return source.
  • [other types]. This method will return SimulationObjectTypes.UNKNOWN.

Returns
String — A SimulationObjectTypes constant value indicating the type of source.
Constant Detail
RULES_ENGINEConstant
public static const RULES_ENGINE:String = rules engine

The object implements IRulesEngine.

SEQUENCERConstant 
public static const SEQUENCER:String = sequencer

The object implements ISequencer.

SIMULATIONConstant 
public static const SIMULATION:String = simulation

The object implements ISimulation.

SIMULATION_UIConstant 
public static const SIMULATION_UI:String = simulation ui

The object implements ISimulationUI.

SNAPSHOT_LOADERConstant 
public static const SNAPSHOT_LOADER:String = snapshot loader

The object implements ISnapshotLoader.

UNKNOWNConstant 
public static const UNKNOWN:String

The object does not implement any known interface in the impression.simulation namespace.