ja
サインイン

← API リファレンスに戻る

Duty A duty

A duty from the Duties panel: a series of stops a train's agent runs. A script cannot change a duty, only hand it over.

用途: To let a train run a duty with startAgent, for instance at a time on the model clock.

clock.at("07:00") {
   trains.Shuttle.startAgent(duties.ShuttleService)
}

プロパティ

name → String

Its name.

The duty's name.

log duties.Shuttle.name