|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Train | |
|---|---|
| net.kolls.railworld | Provides for basic status and operation of quantities needed for both play and editing. |
| net.kolls.railworld.io | File I/O support for maps and games. |
| net.kolls.railworld.play | Classes used for playing Rail World. |
| net.kolls.railworld.play.ra | Various kinds of rail accidents. |
| net.kolls.railworld.play.script | Scripting support for plug-ins. |
| net.kolls.railworld.segment | Rail segments available. |
| net.kolls.railworld.segment.sp | Signal programs. |
| net.kolls.railworld.tc | Train controllers provide means to control a train's throttle, brake, horn, as well as performing loads and unloads, and other train functions. |
| Uses of Train in net.kolls.railworld |
|---|
| Fields in net.kolls.railworld declared as Train | |
|---|---|
protected Train |
TrainControl.myT
The train being controlled |
| Fields in net.kolls.railworld with type parameters of type Train | |
|---|---|
protected java.util.Set<Train> |
RailSegment.trains
Trains present in this segment |
| Methods in net.kolls.railworld that return Train | |
|---|---|
Train |
TrainControl.getTrain()
|
| Methods in net.kolls.railworld that return types with arguments of type Train | |
|---|---|
java.util.Set<Train> |
RailSegment.trains()
Note: Set contents will be maintained automatically, read only |
| Methods in net.kolls.railworld with parameters of type Train | |
|---|---|
void |
TrainUIController.act(Train t)
"Walk" the train and the segments it is on and call segment
and car appropriately. |
void |
TrainControl.attach(Train t)
The consist report, weight, length, and speed are added to the panel, which is laid out using BoxLayout. |
void |
SignalProgram.enter(Train t)
Called by the signal when a train enters the signal from the facing side only. |
void |
RailSegment.enter(Train t)
Notification that a train is in the segment. |
void |
SignalProgram.reacting(Train t)
Indication that a train's controller is monitoring, responding to or waiting on the signal. |
DLoc |
CLoc.segFwd(Distance len,
Car myC,
Train myT)
Moves forward in the direction of travel a given distance, and generate rendering information for a given Train and/or Car. |
| Uses of Train in net.kolls.railworld.io |
|---|
| Methods in net.kolls.railworld.io that return Train | |
|---|---|
static Train |
TRNReader.read(java.io.File f)
Read a train from a Yard Duty train file |
| Methods in net.kolls.railworld.io with parameters of type Train | |
|---|---|
static void |
TRNWriter.write(java.io.File f,
Train t)
Create a Yard Duty train file from a given train. |
| Uses of Train in net.kolls.railworld.play |
|---|
| Fields in net.kolls.railworld.play declared as Train | |
|---|---|
Train |
RailAccident.t1
The trains involved in the accident. |
Train |
RailAccident.t2
The other train. |
| Methods in net.kolls.railworld.play that return Train | |
|---|---|
Train |
Trains.get(int index)
Get a train |
Train |
Trains.getSelectedTrain()
|
Train |
Trains.join(Train t1,
Train t2)
Joins two trains. |
Train |
Trains.reverse(Train t)
Reverse the direction of a given train. |
Train |
Trains.split(Train t)
Splits a given train based on the selected car. |
| Methods in net.kolls.railworld.play that return types with arguments of type Train | |
|---|---|
java.util.Iterator<Train> |
Trains.iterator()
|
| Methods in net.kolls.railworld.play with parameters of type Train | |
|---|---|
void |
Trains.add(int index,
Train t)
Add a new train to the collection at the specified index. |
void |
Trains.add(Train t)
Add a new a train to the collection. |
void |
PlayFrame.addTrain(Train t,
boolean select)
Add a train. |
Train |
Trains.join(Train t1,
Train t2)
Joins two trains. |
void |
Trains.remove(Train t)
Remove a given train from the map. |
void |
PlayFrame.removeTrain(Train t)
Remove a train. |
Train |
Trains.reverse(Train t)
Reverse the direction of a given train. |
void |
Trains.select(Train t,
Car c)
Select a particular train, and optionally, a particular car. |
Train |
Trains.split(Train t)
Splits a given train based on the selected car. |
| Constructors in net.kolls.railworld.play with parameters of type Train | |
|---|---|
RailAccident(Train first,
Train second,
java.awt.geom.Point2D p)
Create a rail accident. |
|
| Uses of Train in net.kolls.railworld.play.ra |
|---|
| Constructors in net.kolls.railworld.play.ra with parameters of type Train | |
|---|---|
HeadOn(Train first,
Train second,
java.awt.geom.Point2D p)
Create a head-on collision. |
|
OverRun(Train first,
java.awt.geom.Point2D p)
Create a track overrun. |
|
RearEnd(Train first,
Train second,
java.awt.geom.Point2D p)
Simply calls super constructor. |
|
SideOn(Train first,
Train second,
java.awt.geom.Point2D p)
Create a side-on collision. |
|
| Uses of Train in net.kolls.railworld.play.script |
|---|
| Fields in net.kolls.railworld.play.script declared as Train | |
|---|---|
Train |
TalCondition.t
Train to watch for, or null for any train. |
| Methods in net.kolls.railworld.play.script with parameters of type Train | |
|---|---|
void |
ScriptManager.addTrainActionListener(TrainActionListener tal,
Train t,
java.lang.String event)
Add a train action listener in the form of a condition. |
void |
ScriptManager.removeTrainActionListener(TrainActionListener tal,
Train t,
java.lang.String event)
Remove a train action listener. |
boolean |
TrainActionListener.trainAction(Train t,
java.lang.String action)
Informs the script that a Train action has been requested and allows it to cancel
the normal behavior. |
boolean |
ScriptManager.trainAction(Train t,
java.lang.String s)
A train has performed an action. |
void |
ScriptManager.trainStep(Train t)
A train has taken a "step". |
| Constructors in net.kolls.railworld.play.script with parameters of type Train | |
|---|---|
TalCondition(TrainActionListener tal,
Train t,
java.lang.String event)
Create a condition |
|
| Uses of Train in net.kolls.railworld.segment |
|---|
| Methods in net.kolls.railworld.segment with parameters of type Train | |
|---|---|
void |
Switch.enter(Train t)
When a train enters this segment, the switch will automatically flip, if necessary, to align itself with the direction the train is coming from. |
void |
Signal.enter(Train t)
|
| Uses of Train in net.kolls.railworld.segment.sp |
|---|
| Methods in net.kolls.railworld.segment.sp with parameters of type Train | |
|---|---|
void |
Yellow.enter(Train t)
|
void |
Red.enter(Train t)
|
void |
Green.enter(Train t)
|
void |
Yellow.reacting(Train t)
|
void |
Red.reacting(Train t)
|
void |
Green.reacting(Train t)
|
| Uses of Train in net.kolls.railworld.tc |
|---|
| Methods in net.kolls.railworld.tc with parameters of type Train | |
|---|---|
void |
UserControl.attach(Train t)
|
void |
MixControl.attach(Train t)
|
void |
AutoControl.attach(Train t)
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||