public class STSVehicleImpl extends java.lang.Object implements STSVehicle
Constructor and Description |
---|
STSVehicleImpl() |
Modifier and Type | Method and Description |
---|---|
double |
getBrake()
Brake rate of the train.
|
double |
getCo_fric()
Co-efficient of friction.
|
double[] |
getDavis()
Gets Davis equation parameters as an array.
|
double |
getDriving_wheel_Po()
Driving wheel position.
|
int |
getDwell()
Gets the dwell times for station stops.
|
double |
getGravity()
Gets value for Gravity.
|
double |
getInertial_mass()
Inertial mass value.
|
double |
getKd() |
double |
getLambda()
Lambda value.
|
double |
getLength()
Length of the train in metres.
|
double |
getMass()
Gets mass of the train.
|
double |
getMax_accel()
Maximum acceleration.
|
double |
getMax_speed()
Max speed in Kilometers per hour
|
double |
getMax_traction()
Maximum traction.
|
int |
getNotch_num() |
double |
getPower()
Power.
|
int |
getSeats()
Gets the number of seats.
|
int |
getTerminal_time()
Gets the dwell time for the terminating station stop.
|
int |
getTrain_control() |
int |
getWeightedPenaltyCostPerMinute()
Weighted penalty cost per minute
|
void |
setBrake(double brake)
Calibration function: setter for Brake.
|
void |
setDavis(double[] davis)
Calibration function: setter for Davis parameters.
|
void |
setInertialMass(double inertialMass)
Calibration function: setter for inertial mass.
|
void |
setMass(double mass)
Calibration function: setter for mass.
|
void |
setMaxAcceleration(double maxAcceleration)
Calibration function: setter for max acceleration.
|
void |
setMaxTraction(double maxTraction)
Calibration function: setter for max traction.
|
void |
setPower(double power)
Calibration function: setter for power.
|
public double getMass()
STSVehicle
getMass
in interface STSVehicle
public double getLambda()
STSVehicle
getLambda
in interface STSVehicle
public double getInertial_mass()
STSVehicle
getInertial_mass
in interface STSVehicle
public double[] getDavis()
STSVehicle
getDavis
in interface STSVehicle
public double getPower()
STSVehicle
getPower
in interface STSVehicle
public double getMax_speed()
STSVehicle
getMax_speed
in interface STSVehicle
public int getSeats()
STSVehicle
getSeats
in interface STSVehicle
public double getCo_fric()
STSVehicle
getCo_fric
in interface STSVehicle
public double getGravity()
STSVehicle
getGravity
in interface STSVehicle
public double getDriving_wheel_Po()
STSVehicle
getDriving_wheel_Po
in interface STSVehicle
public double getMax_traction()
STSVehicle
getMax_traction
in interface STSVehicle
public double getMax_accel()
STSVehicle
getMax_accel
in interface STSVehicle
public int getDwell()
STSVehicle
getDwell
in interface STSVehicle
public int getTerminal_time()
STSVehicle
getTerminal_time
in interface STSVehicle
public double getKd()
getKd
in interface STSVehicle
public int getNotch_num()
getNotch_num
in interface STSVehicle
public int getTrain_control()
getTrain_control
in interface STSVehicle
public double getBrake()
STSVehicle
getBrake
in interface STSVehicle
public double getLength()
STSVehicle
getLength
in interface STSVehicle
public int getWeightedPenaltyCostPerMinute()
STSVehicle
getWeightedPenaltyCostPerMinute
in interface STSVehicle
public void setDavis(double[] davis)
STSVehicle
setDavis
in interface STSVehicle
public void setPower(double power)
STSVehicle
setPower
in interface STSVehicle
public void setMass(double mass)
STSVehicle
setMass
in interface STSVehicle
public void setInertialMass(double inertialMass)
STSVehicle
setInertialMass
in interface STSVehicle
public void setMaxAcceleration(double maxAcceleration)
STSVehicle
setMaxAcceleration
in interface STSVehicle
public void setMaxTraction(double maxTraction)
STSVehicle
setMaxTraction
in interface STSVehicle
public void setBrake(double brake)
STSVehicle
setBrake
in interface STSVehicle