fr
Connexion

← Retour à la référence de l'API

NotThere Stock that is not there

What onNotThere gives when a train is not where its circulation expects it: which train, which service and where it should have been.

À quoi ça sert : To warn the dispatcher, so the train can be brought there.

trains.IC.onNotThere { NotThere n ->
   say "${n.train.name} is not ready for ${n.service}"
}

Propriétés

train → Train

The train that is not there.

The train that is not there.

trains.IC.onNotThere { NotThere n -> log n.train.name }

service → String

The service's number this run.

The service number.

trains.IC.onNotThere { NotThere n -> log n.service }

place → Place

Where it was expected, when that is a station or yard.

Where it was expected, when that is a place.

trains.IC.onNotThere { NotThere n -> log n.place?.name }

block → Block

Where it was expected, when that is one block.

Where it was expected, when that is one block.

trains.IC.onNotThere { NotThere n -> log n.block?.name }