Property

The Properties and Property elements are used to configure the simulated controller.

Example

Example XML for Properties
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
<System>
  <Properties>
    <Property Name="SimulatorCpuUtilization"  Value="Modest" />
    <Property Name="SimulatorRealTimeThreads" Value="2" />
    <Property Name="SimulatorSpeedFactor"     Value="0.5" />
    <Property Name="SimulatorClientAddress"   Value="localhost" />
    <Property Name="SimServiceAddress"        Value="localhost" />
    <Property Name="TargetTopControllerState" Value="Config" />
  </Properties>
</System>

Names

Description

Documentation

Default value

SimulatorCpuUtilization

Defines how the simulator process claims CPU time. Accepts values Greedy and Modest.

CPU utilization

Greedy

SimulatorRealTimeThreads

Maximum number of threads that the simulator process is allowed to create to simulate the real-time behavior of a controller. Accepts integer values.

Real-time threads

1

SimulatorSpeedFactor

The speed factor defines an additional method of throttling the CPU time claimed by the simulator process. Accepts floating-point values.

Speed factor

1.0

SimulatorClientAddress

Defines which clients can discover the simulator. Accepts valid IP addresses and hostnames.

Simulator client address

255.255.255.255

SimServiceAddress

Defines the IP address or hostname of the simulator service on which the simulator is created. Accepts valid IP addresses and hostnames.

Simulator service address

localhost

TargetTopControllerState

Automatically bring top controller state machine to specified target state. Accepts values Init, Config and Run.

State machine

Init

XML schema

Element Properties
1
2
3
4
5
6
7
<xs:element name="Properties">
  <xs:complexType>
    <xs:sequence>
      <xs:element ref="Property" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>
Element Property
1
2
3
4
5
6
<xs:element name="Property">
  <xs:complexType>
    <xs:attribute name="Name" type="xs:string" use="required"/>
    <xs:attribute name="Value" type="xs:string" use="required"/>
  </xs:complexType>
</xs:element>

Attribute

Description

Name

Used to specify the name of a property, which is required to be defined.

Value

Defines the property’s value.