|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.kolls.railworld.segment.sp.Red
public class Red
A red (stop) signal.
| Constructor Summary | |
|---|---|
Red()
|
|
| Method Summary | |
|---|---|
void |
enter(Train t)
Called by the signal when a train enters the signal from the facing side only. |
javax.swing.Icon |
icon()
For use by the signal chooser. |
void |
load(java.util.Map<java.lang.String,java.lang.String> data)
Load from saved. |
java.lang.Object |
newInstance()
like getClass().newInstance(). |
void |
reacting(Train t)
Indication that a train's controller is monitoring, responding to or waiting on the signal. |
java.util.Map<java.lang.String,java.lang.String> |
save()
Store all persistent data into a map and return for saving. |
java.awt.Color |
status()
Indicate the current color of the signal. |
java.lang.String |
toString()
Indicates the name of the program to display to the user as a tooltip. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Red()
| Method Detail |
|---|
public void enter(Train t)
SignalProgram
enter in interface SignalProgramt - The Train entering the signal.public void reacting(Train t)
SignalProgram
reacting in interface SignalProgramt - The Train monitoring/responding/waiting.public java.awt.Color status()
SignalProgram
status in interface SignalProgrampublic java.lang.String toString()
SignalProgram
toString in interface SaveLoadtoString in interface SignalProgramtoString in class java.lang.Objectpublic javax.swing.Icon icon()
SignalProgram
icon in interface SignalProgrampublic void load(java.util.Map<java.lang.String,java.lang.String> data)
SaveLoad
load in interface SaveLoaddata - Key value pairs saved by an instance of this classpublic java.util.Map<java.lang.String,java.lang.String> save()
SaveLoad
save in interface SaveLoadpublic java.lang.Object newInstance()
SaveLoad
newInstance in interface SaveLoad
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||