Uses of Class
com.amalgamasimulation.trains.RailNode
Packages that use RailNode
-
Uses of RailNode in com.amalgamasimulation.trains
Fields in com.amalgamasimulation.trains with type parameters of type RailNodeMethods in com.amalgamasimulation.trains that return RailNodeModifier and TypeMethodDescriptionTrainsEnvironment.addRailNode(RailNode railNode) Adds an existingRailNodeto the rail graph.TrainsEnvironment.addRailNode(String name, Point point) Creates a newRailNodewith the given name and position, adds it to the graph, and returns the created node.TrainsEnvironment.createNewRailNode(String name, Point point) Creates a newRailNodeat the specified point with the given name.Methods in com.amalgamasimulation.trains that return types with arguments of type RailNodeModifier and TypeMethodDescriptionTrainRoute.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 RailNodeModifier and TypeMethodDescriptionTrainsEnvironment.addRailNode(RailNode railNode) Adds an existingRailNodeto the rail graph.TrainsEnvironment.addRailTrack(RailNode sourceNode, RailNode destNode, String name, Polyline forwardPolyline) TrainsEnvironment.getShortestPath(RailNode sourceNodeValue, RailNode destNodeValue) Method parameters in com.amalgamasimulation.trains with type arguments of type RailNodeModifier and TypeMethodDescriptionvoidTrainRoute.bookIntervals(Object booker, double startMovementTime, double trainVelocity, GeometricGraphPath<RailNode, RailArc> sourceSelfPath) Books time intervals along this route for the specifiedTrainmovement.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, 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(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, 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, 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, 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.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.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.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) Constructor parameters in com.amalgamasimulation.trains with type arguments of type RailNodeModifierConstructorDescriptionRailDestination(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.