Uses of Class
com.amalgamasimulation.trains.RailDestination
Packages that use RailDestination
-
Uses of RailDestination in com.amalgamasimulation.trains
Methods in com.amalgamasimulation.trains that return RailDestinationModifier and TypeMethodDescriptionTrain.getHeadRailDestination()Returns aRailDestinationwhere the head of this long agent is currently located which indicates the location for movement to the head of the train, ornullif this agent is not in a graph.Train.getTailRailDestination()Returns aRailDestinationwhere the tail of this long agent is currently located which indicates the location for movement to the tail of the train, ornullif this agent is not in a graph.static RailDestinationCreates a new instance of the rail destination by the specified arc and offset.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) Creates a new instance of the rail destination by the specifiedGeometricGraphPosition.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.Methods in com.amalgamasimulation.trains with parameters of type RailDestinationModifier and TypeMethodDescriptionTrain.calculateRouteTo(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(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(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.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.Method parameters in com.amalgamasimulation.trains with type arguments of type RailDestinationModifier and TypeMethodDescriptionTrain.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.