|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SignalProgram
Describes the necessary operations to be a signal program (control a signal).
| 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 |
reacting(Train t)
Indication that a train's controller is monitoring, responding to or waiting on the signal. |
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 interface net.kolls.railworld.io.SaveLoad |
|---|
load, newInstance, save |
| Method Detail |
|---|
java.lang.String toString()
toString in interface SaveLoadtoString in class java.lang.Objectvoid enter(Train t)
t - The Train entering the signal.void reacting(Train t)
t - The Train monitoring/responding/waiting.java.awt.Color status()
javax.swing.Icon icon()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||