public class SpeedRestriction extends TrackCharacteristic
relativeStartMilePost
BLOCK_ENTITY, LINK_ENTITY, LOOP_ENTITY
Constructor and Description |
---|
SpeedRestriction() |
SpeedRestriction(double velo,
double b,
double c) |
SpeedRestriction(double speedLimit,
double relativeStartMilePost,
double relativeEndMilePost,
Block block) |
Modifier and Type | Method and Description |
---|---|
double |
getSpeedLimit() |
boolean |
hasError() |
void |
setSpeedLimit(double speedLimit) |
getRelativeEndMilePost, getRelativeStartMilePost, getTrackSegment, setRelativeEndMilePost, setRelativeStartMilePost, setTrackSegment
getEntityType, isBlock, isLink, isLoop, setEntityType
public SpeedRestriction(double velo, double b, double c)
velo
- stores velocitypublic SpeedRestriction()
public SpeedRestriction(double speedLimit, double relativeStartMilePost, double relativeEndMilePost, Block block)