Uses of Class
com.amalgamasimulation.trains.RailArc
Packages that use RailArc
-
Uses of RailArc in com.amalgamasimulation.trains
Fields in com.amalgamasimulation.trains with type parameters of type RailArcMethods in com.amalgamasimulation.trains that return types with arguments of type RailArcModifier and TypeMethodDescriptionTrainsEnvironment.calculateRouteOrBarrierArcs(GeometricGraphPosition<RailNode, RailArc> sourcePosition, GeometricGraphPosition<RailNode, RailArc> destPosition, Train train, boolean considerBookedTracks, boolean considerTrainsPredicate, Set<RailArc> prohibitedArcs, double beginTime, double velocity) Calculates a route and barriers arcs for the specifiedTrainfrom a source position to a destination position.TrainsEnvironment.calculateRouteOrBarrierArcs(GeometricGraphPosition<RailNode, RailArc> sourcePosition, GeometricGraphPosition<RailNode, RailArc> destPosition, Train train, boolean considerBookedTracks, boolean considerTrainsPredicate, Set<RailArc> prohibitedArcs, List<RailNode> visitNodes, double beginTime, double velocity) Calculates a route and barriers arcs for the specifiedTrainfrom a source position to a destination position.TrainRoute.getDestPosition()Returns the dest position of this route.RailDestination.getGeometricGraphPosition(double trainLength) Returns an instance ofGeometricGraphPositionwhich represents this position in the underlying rail graph considering which side of the train should arrive at the destination.TrainRoute.getPaths()Returns the list ofAgentGraphPaths representing the paths in this route.TrainsEnvironment.getShortestPath(Graph<RailNode, RailArc>.Node sourceNode, Graph<RailNode, RailArc>.Node destNode) TrainsEnvironment.getShortestPath(GeometricGraphPosition<RailNode, RailArc> sourcePosition, GeometricGraphPosition<RailNode, RailArc> destPosition) TrainsEnvironment.getShortestPath(GeometricGraphPosition<RailNode, RailArc> sourcePosition, Predicate<Graph<RailNode, RailArc>.Node> destNodeIndicator) TrainsEnvironment.getShortestPath(RailNode sourceNodeValue, RailNode destNodeValue) TrainRoute.getSourcePosition()Returns the source position of this route.Methods in com.amalgamasimulation.trains with parameters of type RailArcModifier and TypeMethodDescriptiondoubleTrainsEnvironment.calculateArcWeight(RailArc arcValue, LongAgentWeightKey longAgentWeightKey) Calculates the weight of traversing the specifiedRailArc.doubleTrainsEnvironment.calculatePartialArcWeight(RailArc arcValue, double startAbsOffset, double endAbsOffset, Set<RailArc> prohibitedArcs, Predicate<Train> considerTrainsPredicate) Calculates the weight of a partial arc segment between the specified absolute offsets.doubleTrainsEnvironment.getArcWeight(RailArc arcValue, LongAgentWeightKey longAgentWeightKey) doubleTrainsEnvironment.getPartialArcWeight(RailArc arcValue, double startAbsOffset, double endAbsOffset, double startRelOffset, double endRelOffset, LongAgentWeightKey longAgentWeightKey) Method parameters in com.amalgamasimulation.trains with type arguments of type RailArcModifier and TypeMethodDescriptionvoidTrainRoute.bookIntervals(Object booker, double startMovementTime, double trainVelocity, GeometricGraphPath<RailNode, RailArc> sourceSelfPath) Books time intervals along this route for the specifiedTrainmovement.doubleTrainsEnvironment.calculatePartialArcWeight(RailArc arcValue, double startAbsOffset, double endAbsOffset, Set<RailArc> prohibitedArcs, Predicate<Train> considerTrainsPredicate) Calculates the weight of a partial arc segment between the specified absolute offsets.TrainsEnvironment.calculateRoute(GeometricGraphPosition<RailNode, RailArc> sourcePosition, GeometricGraphPosition<RailNode, RailArc> destPosition, Train train, boolean considerBookedTracks, boolean considerTrainsPredicate, Set<RailArc> prohibitedArcs, double beginTime, double velocity) Calculates a route for the specifiedTrainfrom a source position to a destination position.TrainsEnvironment.calculateRoute(GeometricGraphPosition<RailNode, RailArc> sourcePosition, GeometricGraphPosition<RailNode, RailArc> destPosition, Train train, boolean considerBookedTracks, boolean considerTrainsPredicate, Set<RailArc> prohibitedArcs, double beginTime, double velocity) Calculates a route for the specifiedTrainfrom a source position to a destination position.TrainsEnvironment.calculateRoute(GeometricGraphPosition<RailNode, RailArc> sourcePosition, GeometricGraphPosition<RailNode, RailArc> destPosition, Train train, boolean considerBookedTracks, boolean considerTrainsPredicate, Set<RailArc> prohibitedArcs, List<RailNode> visitNodes, double beginTime, double velocity) Calculates a route for the specifiedTrainfrom a source position to a destination position.TrainsEnvironment.calculateRoute(GeometricGraphPosition<RailNode, RailArc> sourcePosition, GeometricGraphPosition<RailNode, RailArc> destPosition, Train train, boolean considerBookedTracks, boolean considerTrainsPredicate, Set<RailArc> prohibitedArcs, List<RailNode> visitNodes, double beginTime, double velocity) Calculates a route for the specifiedTrainfrom a source position to a destination position.TrainsEnvironment.calculateRoute(GeometricGraphPosition<RailNode, RailArc> sourcePosition, GeometricGraphPosition<RailNode, RailArc> destPosition, Train train, BiPredicate<RailTrack, Object> considerBookedTracks, Predicate<Train> considerTrainsPredicate, Set<RailArc> prohibitedArcs, List<RailNode> visitNodes, double beginTime, double velocity) Calculates a route for the specifiedTrainfrom a source position to a destination position.TrainsEnvironment.calculateRoute(GeometricGraphPosition<RailNode, RailArc> sourcePosition, GeometricGraphPosition<RailNode, RailArc> destPosition, Train train, BiPredicate<RailTrack, Object> considerBookedTracks, Predicate<Train> considerTrainsPredicate, Set<RailArc> prohibitedArcs, List<RailNode> visitNodes, double beginTime, double velocity) Calculates a route for the specifiedTrainfrom a source position to a destination position.TrainsEnvironment.calculateRouteOrBarrierArcs(GeometricGraphPosition<RailNode, RailArc> sourcePosition, GeometricGraphPosition<RailNode, RailArc> destPosition, Train train, boolean considerBookedTracks, boolean considerTrainsPredicate, Set<RailArc> prohibitedArcs, double beginTime, double velocity) Calculates a route and barriers arcs for the specifiedTrainfrom a source position to a destination position.TrainsEnvironment.calculateRouteOrBarrierArcs(GeometricGraphPosition<RailNode, RailArc> sourcePosition, GeometricGraphPosition<RailNode, RailArc> destPosition, Train train, boolean considerBookedTracks, boolean considerTrainsPredicate, Set<RailArc> prohibitedArcs, double beginTime, double velocity) Calculates a route and barriers arcs for the specifiedTrainfrom a source position to a destination position.TrainsEnvironment.calculateRouteOrBarrierArcs(GeometricGraphPosition<RailNode, RailArc> sourcePosition, GeometricGraphPosition<RailNode, RailArc> destPosition, Train train, boolean considerBookedTracks, boolean considerTrainsPredicate, Set<RailArc> prohibitedArcs, List<RailNode> visitNodes, double beginTime, double velocity) Calculates a route and barriers arcs for the specifiedTrainfrom a source position to a destination position.TrainsEnvironment.calculateRouteOrBarrierArcs(GeometricGraphPosition<RailNode, RailArc> sourcePosition, GeometricGraphPosition<RailNode, RailArc> destPosition, Train train, boolean considerBookedTracks, boolean considerTrainsPredicate, Set<RailArc> prohibitedArcs, List<RailNode> visitNodes, double beginTime, double velocity) Calculates a route and barriers arcs for the specifiedTrainfrom a source position to a destination position.Train.calculateRouteTo(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(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(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, 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, 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, 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, List<RailNode> visitNodes, Set<RailArc> prohibitedArcs, double velocity) Calculates a route for this train from a head or a tail to destination position.doubleTrainRoute.getEndMovementTime(Train train, double beginTime, double trainVelocity, GeometricGraphPath<RailNode, RailArc> sourceSelfPath, boolean considerBookedTracks, boolean considerTrainsPredicate) Returns the earliest possible end time for movement along this route, taking into account other trains standing on the tracks and booked tracks.doubleTrainRoute.getEndMovementTime(Train train, double beginTime, double trainVelocity, GeometricGraphPath<RailNode, RailArc> sourceSelfPath, BiPredicate<RailTrack, Object> considerBookedTracks, Predicate<Train> considerTrainsPredicate, Set<RailArc> prohibitedArcs) Returns the earliest possible end time for movement along this route, taking into account other trains standing on the tracks and booked tracks.doubleTrainRoute.getEndMovementTime(Train train, double beginTime, double trainVelocity, GeometricGraphPath<RailNode, RailArc> sourceSelfPath, BiPredicate<RailTrack, Object> considerBookedTracks, Predicate<Train> considerTrainsPredicate, Set<RailArc> prohibitedArcs) Returns the earliest possible end time for movement along this route, taking into account other trains standing on the tracks and booked tracks.TrainsEnvironment.getShortestPath(GeometricGraphPosition<RailNode, RailArc> sourcePosition, GeometricGraphPosition<RailNode, RailArc> destPosition) TrainsEnvironment.getShortestPath(GeometricGraphPosition<RailNode, RailArc> sourcePosition, Predicate<Graph<RailNode, RailArc>.Node> destNodeIndicator) doubleTrainRoute.getStartMovementTime(Train train, double beginTime, double trainVelocity, GeometricGraphPath<RailNode, RailArc> sourceSelfPath, BiPredicate<RailTrack, Object> considerBookedTracks, Predicate<Train> considerTrainsPredicate, Set<RailArc> prohibitedArcs) Returns the earliest possible start time for movement along this route, taking into account other trains standing on the tracks and booked tracks.doubleTrainRoute.getStartMovementTime(Train train, double beginTime, double trainVelocity, GeometricGraphPath<RailNode, RailArc> sourceSelfPath, BiPredicate<RailTrack, Object> considerBookedTracks, Predicate<Train> considerTrainsPredicate, Set<RailArc> prohibitedArcs) Returns the earliest possible start time for movement along this route, taking into account other trains standing on the tracks and booked tracks.booleanTrainRoute.isAvailableFor(Train train, double beginTime, double trainVelocity, GeometricGraphPath<RailNode, RailArc> sourceSelfPath) Checks whether this route is available for the specifiedTrainto start moving.booleanTrainRoute.isAvailableFor(Train train, double beginTime, double trainVelocity, GeometricGraphPath<RailNode, RailArc> sourceSelfPath, boolean considerBookedTracks, boolean considerTrainsPredicate) Checks whether this route is available for the specifiedTrainto start moving.booleanTrainRoute.isAvailableFor(Train train, double beginTime, double trainVelocity, GeometricGraphPath<RailNode, RailArc> sourceSelfPath, BiPredicate<RailTrack, Object> considerBookedTracks, Predicate<Train> considerTrainsPredicate, Set<RailArc> prohibitedArcs) Checks whether this route is available for the specifiedTrainto start moving.booleanTrainRoute.isAvailableFor(Train train, double beginTime, double trainVelocity, GeometricGraphPath<RailNode, RailArc> sourceSelfPath, BiPredicate<RailTrack, Object> considerBookedTracks, Predicate<Train> considerTrainsPredicate, Set<RailArc> prohibitedArcs) Checks whether this route is available for the specifiedTrainto start moving.Train.jumpTo(GeometricGraphPosition<RailNode, RailArc> position, boolean shouldBookArcs) Jumps this agent to the specified position.Train.moveAlongPath(AgentGraphPath<RailNode, RailArc> path, double velocity) protected CompletionStage<Void> Train.moveAlongPathInternal(AgentGraphPath<RailNode, RailArc> path, double velocity) Train.moveTo(GeometricGraphPosition<RailNode, RailArc> destPosition, double velocity) Train.moveToClosest(List<GeometricGraphPosition<RailNode, RailArc>> destPositions, double velocity) 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.voidTrain.onDestinationReached(GeometricGraphPosition<RailNode, RailArc> destPosition) voidTrain.onOtherAgentReached(GraphAgent<RailNode, RailArc> otherAgent, boolean isMovingInSameDirection) 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.Constructor parameters in com.amalgamasimulation.trains with type arguments of type RailArcModifierConstructorDescriptionRailDestination(GeometricGraphPosition<RailNode, RailArc> geometricGraphPosition) Creates a new instance of the rail destination by the specifiedGeometricGraphPosition.RailDestination(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.TrainRoute(List<AgentGraphPath<RailNode, RailArc>> paths, TrainsEnvironment trainsEnvironment) Creates a newTrainRouteconsisting of the given consecutive paths.