Scenario-defined trains: Difference between revisions

From SignalWiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
It is possible to create a scenario that does not have any trains, either existing in the yard, or in the timetable. Trains can be created (spawned) at the boundaries of the yard from the timetable, and optionally, from an explicit definition. Additionally, trains can be placed at precise locations in the yard. All [[scenario-defined trains]], either spawning or stabled, are defined within a set of Consists tags:
<pre style="color:blue">
<pre style="color:blue">
  <Scenario app="ProductName" description="MyScenario" startDate="1965-01-01" startTime="00:00:00" >
  <Scenario app="ProductName" description="MyScenario" startDate="1965-01-01" startTime="00:00:00" >
Line 6: Line 8:
  </Scenario>
  </Scenario>
</pre>
</pre>
To load trains from the timetable defined for this scenario, set the mandatory attribute ''loadFromTimetable'' to ''true''. To specify a scenario with no timetable trains, set ''loadFromTimetable'' to ''false''.
==Defining spawning trains==
==Defining stabled trains==
==Movement orders==
You can define [[Defining Movement Orders In Scenarios|movement orders]] for each scenario-defined train, either a spawning train or stabled train
The following types of Movement Orders are available:
  0: Renumber
  1: Turnaround
  2: Couple
  3: Uncouple
  4: Call
  5: ChangeDriver
  6: SpotCars
  7: SpotCarsSpecify
  8: StableCars
  9: PullUp
10: StopShort
11: StopAhead
12: SwitchLock
17: RunAround
18: ContentChanges
{{ScenariosNav}}
{{ScenariosNav}}

Revision as of 18:52, 2 July 2011

It is possible to create a scenario that does not have any trains, either existing in the yard, or in the timetable. Trains can be created (spawned) at the boundaries of the yard from the timetable, and optionally, from an explicit definition. Additionally, trains can be placed at precise locations in the yard. All scenario-defined trains, either spawning or stabled, are defined within a set of Consists tags:

 <Scenario app="ProductName" description="MyScenario" startDate="1965-01-01" startTime="00:00:00" >
    <Consists loadFromTimetable="true">
        <!-- scenario-defined trains go here -->
    </Consists>
 </Scenario>

To load trains from the timetable defined for this scenario, set the mandatory attribute loadFromTimetable to true. To specify a scenario with no timetable trains, set loadFromTimetable to false.

Defining spawning trains

Defining stabled trains

Movement orders

You can define movement orders for each scenario-defined train, either a spawning train or stabled train The following types of Movement Orders are available:

 0: Renumber
 1: Turnaround
 2: Couple
 3: Uncouple
 4: Call
 5: ChangeDriver
 6: SpotCars
 7: SpotCarsSpecify
 8: StableCars
 9: PullUp
10: StopShort
11: StopAhead
12: SwitchLock
17: RunAround
18: ContentChanges



Return to Scenario Creation