Uses of Class
com.amalgamasimulation.graphagent.AgentGraphPath
Packages that use AgentGraphPath
-
Uses of AgentGraphPath in com.amalgamasimulation.graphagent
Methods in com.amalgamasimulation.graphagent that return AgentGraphPathModifier and TypeMethodDescriptionprotected AgentGraphPath<N, A> LongAgent.createPathForTailAgent(GraphPath<N, A> path, GeometricGraphPosition<N, A> destPosition, GeometricGraphPosition<N, A> actualDestPosition) GraphAgent.getGraphPath()Returns the current path of this agent in form ofAgentGraphPath, ornullif this agent has currently no pathAgentGraphPath.getReversePath(Graph<N, A> graph) protected AgentGraphPath<N, A> GraphEnvironment.getSameOrReverseArcPath(GeometricGraphPosition<N, A> sourcePosition, GeometricGraphPosition<N, A> destPosition, GraphAgent<N, A> agent) protected AgentGraphPath<N, A> LongAgent.getShortestHeadTailPath(Function<GeometricGraphPosition<N, A>, AgentGraphPath<N, A>> pathFunction) protected AgentGraphPath<N, A> GraphAgent.getShortestPath(GeometricGraphPosition<N, A> destPosition) protected AgentGraphPath<N, A> GraphEnvironment.getShortestPath(Graph<N, A>.Node sourceNode, Graph<N, A>.Node destNode, GraphAgent<N, A> agent) Returns the shortest path from the specified source node to the specified destination node for the specified agent, ornullif no such path exists.GraphEnvironment.getShortestPath(GeometricGraphPosition<N, A> sourcePosition, GeometricGraphPosition<N, A> destPosition) GraphEnvironment.getShortestPath(GeometricGraphPosition<N, A> sourcePosition, GeometricGraphPosition<N, A> destPosition, GraphAgent<N, A> agent) Returns the shortest path from the specified source position to the specified destination position for the specified agent, ornullif no such path exists.GraphEnvironment.getShortestPath(GeometricGraphPosition<N, A> sourcePosition, Predicate<Graph<N, A>.Node> destNodeIndicator) GraphEnvironment.getShortestPath(GeometricGraphPosition<N, A> sourcePosition, Predicate<Graph<N, A>.Node> destNodeIndicator, GraphAgent<N, A> agent) Returns the shortest path from the specified source position to the closest node on which the specified predicate returnstrue, ornullif no such path exists or the predicate returnsfalsefor all nodes reachable from the source position.GraphEnvironment.getShortestPath(N sourceNodeValue, N destNodeValue) GraphEnvironment.getShortestPath(N sourceNodeValue, N destNodeValue, GraphAgent<N, A> agent) Returns the shortest path from the specified source node to the specified destination node for the specified agent, ornullif no such path exists.protected AgentGraphPath<N, A> LongAgent.getShortestPath(GeometricGraphPosition<N, A> destPosition) protected AgentGraphPath<N, A> LongAgentsEnvironment.getShortestPath(GeometricGraphPosition<N, A> sourcePosition, GeometricGraphPosition<N, A> destPosition, GraphAgent<N, A> agent) protected AgentGraphPath<N, A> GraphAgent.getShortestPathToClosest(List<GeometricGraphPosition<N, A>> destPositions) GraphEnvironment.getShortestPathToClosest(GeometricGraphPosition<N, A> sourcePosition, List<GeometricGraphPosition<N, A>> destPositions, GraphAgent<N, A> agent) Returns the shortest path from the specified source position to the closest one of the specified destination positions for the specified agent, ornullif neither of the specified destination positions is reachable from the source position.protected AgentGraphPath<N, A> LongAgent.getShortestPathToClosest(List<GeometricGraphPosition<N, A>> destPositions) protected AgentGraphPath<N, A> GraphEnvironment.tryGetZeroLengthPathBetweenAdjacentPositions(GeometricGraphPosition<N, A> sourcePosition, GeometricGraphPosition<N, A> destPosition) Tries to find and return a zero-length path between the two adjacent positions.Methods in com.amalgamasimulation.graphagent with parameters of type AgentGraphPathModifier and TypeMethodDescriptionprotected booleanLongAgent.comparePathsLessThan(AgentGraphPath<N, A> firstPath, AgentGraphPath<N, A> secondPath) GraphAgent.moveAlongPath(AgentGraphPath<N, A> path, double velocity) LongAgent.moveAlongPath(AgentGraphPath<N, A> path, double velocity) protected voidGraphAgent.setCurrentPathInternal(AgentGraphPath<N, A> path) protected voidLongAgent.setCurrentPathInternal(AgentGraphPath<N, A> path) Method parameters in com.amalgamasimulation.graphagent with type arguments of type AgentGraphPathModifier and TypeMethodDescriptionprotected AgentGraphPath<N, A> LongAgent.getShortestHeadTailPath(Function<GeometricGraphPosition<N, A>, AgentGraphPath<N, A>> pathFunction) Constructors in com.amalgamasimulation.graphagent with parameters of type AgentGraphPath -
Uses of AgentGraphPath in com.amalgamasimulation.trains
Methods in com.amalgamasimulation.trains that return AgentGraphPathModifier and TypeMethodDescriptionTrainsEnvironment.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) Methods in com.amalgamasimulation.trains that return types with arguments of type AgentGraphPathModifier and TypeMethodDescriptionTrainRoute.getPaths()Returns the list ofAgentGraphPaths representing the paths in this route.Methods in com.amalgamasimulation.trains with parameters of type AgentGraphPathModifier and TypeMethodDescriptionTrain.moveAlongPath(AgentGraphPath<RailNode, RailArc> path, double velocity) protected CompletionStage<Void> Train.moveAlongPathInternal(AgentGraphPath<RailNode, RailArc> path, double velocity) Constructor parameters in com.amalgamasimulation.trains with type arguments of type AgentGraphPathModifierConstructorDescriptionTrainRoute(List<AgentGraphPath<RailNode, RailArc>> paths, TrainsEnvironment trainsEnvironment) Creates a newTrainRouteconsisting of the given consecutive paths.