public class VelocityProfile
extends java.lang.Object
Constructor and Description |
---|
VelocityProfile(double startLen,
double endLen,
double startVelo,
double finalVelo,
double totTime,
double accel) |
VelocityProfile(VelocityProfile simulatorVelocityProfile) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsMilePost(double milePost) |
double |
getAcceleration() |
double |
getArrivalTime() |
double |
getDepartureTime() |
boolean |
getDraw() |
double |
getEndMilePost() |
double |
getEndMilePost(int trainDirection) |
double |
getEndVelocity() |
double |
getStartMilePost() |
double |
getStartMilePost(int trainDirection) |
double |
getStartVelocity() |
double |
getTotalTime() |
TrackSegment |
getTrackSegment() |
double |
getVelocityFromMilepost(double milePost) |
void |
print(int trainDirection) |
void |
setAcceleration(double acceleration) |
void |
setArrivalTime(double arrivalTime) |
void |
setDepartureTime(double departureTime) |
void |
setDraw(boolean flag) |
void |
setEndMilePost(double endMilePost) |
void |
setEndVelocity(double endVelocity) |
void |
setStartMilePost(double startMilePost) |
void |
setStartVelocity(double startVelocity) |
void |
setTotalTime(double totalTime) |
void |
setTrackSegment(TrackSegment trackSegment) |
public VelocityProfile(double startLen, double endLen, double startVelo, double finalVelo, double totTime, double accel)
startLen
- stores the starting lengthendLen
- stores the ending lengthstartVelo
- stores the starting velocityfinalVelo
- stores the final velocity (unit ?)totTime
- calculates total time (unit ?)accel
- stores acceleration (unit ?)public VelocityProfile(VelocityProfile simulatorVelocityProfile)
public void setDraw(boolean flag)
public boolean getDraw()
public double getArrivalTime()
public void setArrivalTime(double arrivalTime)
public double getDepartureTime()
public void setDepartureTime(double departureTime)
public double getStartMilePost()
public void setStartMilePost(double startMilePost)
public double getEndMilePost()
public void setEndMilePost(double endMilePost)
public double getAcceleration()
public void setAcceleration(double acceleration)
public double getStartVelocity()
public void setStartVelocity(double startVelocity)
public double getEndVelocity()
public void setEndVelocity(double endVelocity)
public double getTotalTime()
public void setTotalTime(double totalTime)
public void print(int trainDirection)
public double getVelocityFromMilepost(double milePost)
public boolean containsMilePost(double milePost)
public double getStartMilePost(int trainDirection)
public double getEndMilePost(int trainDirection)
public TrackSegment getTrackSegment()
public void setTrackSegment(TrackSegment trackSegment)