public final class Formhauptsignal extends Hauptsignal implements Formsignal
Signal.SignalCommand
command, log, nominalState
count, ctrl_id, elapsed, elapsedCount, pin, unit_no
name
Constructor and Description |
---|
Formhauptsignal(Abschnitt abschnitt,
java.lang.String number,
boolean inDirection,
int spulen)
Dieser Konstruktur initialisiert ein Formhauptsignal.
|
Modifier and Type | Method and Description |
---|---|
protected Signal.SignalCommand |
correctState(Signal.SignalCommand sb,
boolean rangieren)
Diese Methode korrigiert Signalkommandos in Abhängigkeit zur Darstellungsform des Signals und ob es sich
beim Schaltvorgang um eine Rangierfahrt handelt.
|
protected Command |
getConfigCode()
Diese Methode gibt den Kommando-Code zum Konfigurieren der Microcontroller zurück.
|
protected Signal.SignalCommand |
setSignalCommand(Signal.SignalCommand sb,
boolean shunting)
Diese Methode berechnet aus einem Signalkommando das richtige Signalbild abhängig von diesem
Signal und ob rangiert oder gefahren werden soll.
|
addData, buildName, createConfigMessage, getCommand, getNominalState, getNumber, getSegment, getSignalState, isDirection, off, setSignal, setState, test, toString
addCommand, addElapsed, addPinConfig, clearBatchElement, compareTo, createMsg, equals, findDeviceUnit, getBatchElement, getDeviceUnitNumber, getMicroControllerId, getModell, getSwitchTime, hashCode, isProcessing, setBatchElement, setMicroControllerId, setPinConfiguration
getLayoutInfo, getLogX, getLogY, getName, parseLayoutInfo, setLogX, setLogY
public Formhauptsignal(Abschnitt abschnitt, java.lang.String number, boolean inDirection, int spulen)
abschnitt
- Der dazugehörende Gleisabschnitt.number
- Die Signalnummer.inDirection
- Die Zählrichtung.spulen
- Die Zahl der Schaltspulen.protected Signal.SignalCommand correctState(Signal.SignalCommand sb, boolean rangieren)
Signal
correctState
in class Signal
sb
- Das Signalkommandorangieren
- Flag, ob es sich um Rangierfahrt handelt.protected Signal.SignalCommand setSignalCommand(Signal.SignalCommand sb, boolean shunting)
Signal
setSignalCommand
in class Hauptsignal
sb
- Das zu interpretierende Signalkommando.shunting
- Das Rangierflag.protected Command getConfigCode()
Signal
getConfigCode
in class Signal
Copyright © 2011 all committers of this modelrailway project