Uses of Enum Class
com.amalgamasimulation.trains.TrainsEnvironment.TrainDirection
Packages that use TrainsEnvironment.TrainDirection
-
Uses of TrainsEnvironment.TrainDirection in com.amalgamasimulation.trains
Methods in com.amalgamasimulation.trains that return TrainsEnvironment.TrainDirectionModifier and TypeMethodDescriptionRailDestination.getMovementEndTrainDirection()Return the side of the train should arrive at the destinationReturns the enum constant of this class with the specified name.static TrainsEnvironment.TrainDirection[]TrainsEnvironment.TrainDirection.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in com.amalgamasimulation.trains with parameters of type TrainsEnvironment.TrainDirectionModifier and TypeMethodDescriptionTrain.calculateRouteTo(TrainsEnvironment.TrainDirection movementStartTrainDirection, GeometricGraphPosition<RailNode, RailArc> destPosition, boolean considerBookedTracks, boolean considerTrainsPredicate, double velocity) Calculates a route for this train from a head or a tail to destination position.Train.calculateRouteTo(TrainsEnvironment.TrainDirection movementStartTrainDirection, GeometricGraphPosition<RailNode, RailArc> destPosition, boolean considerBookedTracks, boolean considerTrainsPredicate, List<RailNode> visitNodes, double velocity) Calculates a route for this train from a head or a tail to destination position.Train.calculateRouteTo(TrainsEnvironment.TrainDirection movementStartTrainDirection, GeometricGraphPosition<RailNode, RailArc> destPosition, boolean considerBookedTracks, boolean considerTrainsPredicate, List<RailNode> visitNodes, Set<RailArc> prohibitedArcs, double velocity) Calculates a route for this train from a head or a tail to destination position.Train.calculateRouteTo(TrainsEnvironment.TrainDirection movementStartTrainDirection, GeometricGraphPosition<RailNode, RailArc> destPosition, BiPredicate<RailTrack, Object> considerBookedTracks, Predicate<Train> considerTrainsPredicate, List<RailNode> visitNodes, Set<RailArc> prohibitedArcs, double beginTime, double velocity) Calculates a route for this train from a head or a tail to destination position.Train.calculateRouteTo(TrainsEnvironment.TrainDirection movementStartTrainDirection, RailDestination railDestination, boolean considerBookedTracks, boolean considerTrainsPredicate, double velocity) Calculates a route for this train from a head or a tail to destination position.Train.calculateRouteTo(TrainsEnvironment.TrainDirection movementStartTrainDirection, RailDestination railDestination, boolean considerBookedTracks, boolean considerTrainsPredicate, List<RailNode> visitNodes, double velocity) Calculates a route for this train from a head or a tail to destination position.Train.calculateRouteTo(TrainsEnvironment.TrainDirection movementStartTrainDirection, RailDestination railDestination, boolean considerBookedTracks, boolean considerTrainsPredicate, List<RailNode> visitNodes, Set<RailArc> prohibitedArcs, double velocity) Calculates a route for this train from a head or a tail to destination position.static RailDestinationRailDestination.of(Graph<RailNode, RailArc>.Arc arc, double arcAbsOffset, TrainsEnvironment.TrainDirection movementEndTrainDirection) Creates a new instance of the rail destination by the specifiedGeometricGraphPositionand information about which side of the train should arrive at the destination.static RailDestinationRailDestination.of(GeometricGraphPosition<RailNode, RailArc> geometricGraphPosition, TrainsEnvironment.TrainDirection movementEndTrainDirection) Creates a new instance of the rail destination by the specifiedGeometricGraphPositionand information about which side of the train should arrive at the destination.Train.tryMoveTo(TrainsEnvironment.TrainDirection movementStartTrainDirection, List<RailDestination> railDestinations, boolean considerBookedTracks, boolean considerTrainsPredicate, double velocity) Attempts to move the train to one of the specified rail destinations along the best available route.Train.tryMoveTo(TrainsEnvironment.TrainDirection movementStartTrainDirection, List<RailDestination> railDestinations, double velocity) Attempts to move the train to one of the specified rail destinations along the best available route.Train.tryMoveTo(TrainsEnvironment.TrainDirection movementStartTrainDirection, List<RailDestination> railDestinations, BiPredicate<RailTrack, Object> considerBookedTracks, Predicate<Train> considerTrainsPredicate, List<RailNode> visitNodes, Set<RailArc> prohibitedArcs, double beginTime, double velocity) Attempts to move the train to one of the specified rail destinations along the best available route.Constructors in com.amalgamasimulation.trains with parameters of type TrainsEnvironment.TrainDirectionModifierConstructorDescriptionRailDestination(GeometricGraphPosition<RailNode, RailArc> geometricGraphPosition, TrainsEnvironment.TrainDirection movementEndTrainDirection) Creates a new instance of the rail destination by the specifiedGeometricGraphPositionand information about which side of the train should arrive at the destination.