jfreerails.world.train
Class SpeedTimeAndStatus

java.lang.Object
  extended by jfreerails.world.train.SpeedTimeAndStatus
All Implemented Interfaces:
java.io.Serializable, FreerailsSerializable

public class SpeedTimeAndStatus
extends java.lang.Object
implements FreerailsSerializable

Stores the speed and status of a train immediately after an instant of time.

Author:
Luke
See Also:
Serialized Form

Nested Class Summary
static class SpeedTimeAndStatus.TrainActivity
           
 
Field Summary
 double acceleration
           
private  SpeedTimeAndStatus.TrainActivity activity
           
 double dt
           
 double s
           
private static long serialVersionUID
           
 double speed
           
 
Constructor Summary
SpeedTimeAndStatus(double acceleration, SpeedTimeAndStatus.TrainActivity activity, double dt, double s, double speed)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 SpeedTimeAndStatus.TrainActivity getActivity()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

dt

public final double dt

speed

public final double speed

acceleration

public final double acceleration

s

public final double s

activity

private final SpeedTimeAndStatus.TrainActivity activity
Constructor Detail

SpeedTimeAndStatus

SpeedTimeAndStatus(double acceleration,
                   SpeedTimeAndStatus.TrainActivity activity,
                   double dt,
                   double s,
                   double speed)
Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getActivity

public SpeedTimeAndStatus.TrainActivity getActivity()