Uses of Class
com.amalgamasimulation.graph.Graph.Arc
Packages that use Graph.Arc
Package
Description
-
Uses of Graph.Arc in com.amalgamasimulation.graph
Fields in com.amalgamasimulation.graph with type parameters of type Graph.ArcModifier and TypeFieldDescriptionGraph.Node.arcsInGraph.arcsListGraph.Node.arcsOutGraph.valuesToArcsMethods in com.amalgamasimulation.graph that return Graph.ArcModifier and TypeMethodDescriptionAdds an arc containing the specified value to the graph.Returns a graph arc containing the specified value.GraphPath.getFirstArc()Returns the first arc of this path, ornullif this path has no arcs.Graph.Node.getFirstArcIn()Returns first arc coming to the node.Graph.Node.getFirstArcOut()Returns first arc going out of the node.GraphPath.getLastArc()Returns the last arc of this path, ornullif this path has no arcs.GraphPath.getNextArc(Graph<N, A>.Node node) Returns the arc that follows the specified node in this path.GraphPath.getPrevArc(Graph<N, A>.Node node) Returns the arc that precedes the specified node in this path.Methods in com.amalgamasimulation.graph that return types with arguments of type Graph.ArcModifier and TypeMethodDescriptionGraph.getArcs()Returns unmodifiable list of all arcs in the graph.GraphPath.getArcs()Returns an unmodifiable list of arcs of this path.Graph.Node.getArcsIn()Returns an unmodifiable list of arcs coming to the node.Graph.Node.getArcsOut()Returns an unmodifiable list of arcs going out of the node.Algorithm.getBarrierArcs(Set<Graph<A, B>.Node> insignificantNodes, Set<Graph<A, B>.Arc> insignificantArcs) Algorithm.getInsignificantNodesAndArcs(Graph<A, B> graph, Set<Graph<A, B>.Node> significantNodes) Returns the pair containing sets of insignificant nodes and arcs of the specified graph against the specified set of significant nodes.Algorithm.getInsignificantNodesAndArcs(Graph<A, B> graph, Set<Graph<A, B>.Node> significantNodes, Set<Graph<A, B>.Arc> barrierArcs) Returns the pair containing sets of insignificant nodes and arcs of the specified graph against the specified set of significant nodes.Methods in com.amalgamasimulation.graph with parameters of type Graph.ArcModifier and TypeMethodDescriptionAppends the specified arc and its destination node to this path.Algorithm.GraphTraversalContextCalculator.calculateNextNodeContext(Graph<A, B>.Arc addedArc, Graph<A, B>.Node addedNode, Algorithm.ArcRelativeDirection addedArcDirection, C prevNodeContext) Function answering the question "What must be the context of the node being added considering we know the added arc, the added node itself, and the context of the already traversed node adjacent to this arc?"booleanAlgorithm.GraphTraversalPredicate.canAddArcAndNode(Graph<A, B>.Arc addedArc, Graph<A, B>.Node addedNode, Algorithm.ArcRelativeDirection addedArcDirection) Predicate answering the question "Can we traverse the arc and the node adjacent to this arc?"booleanGraph.containsArc(Graph<N, A>.Arc arc) Checks if the graph contains the specified arc.booleanAlgorithm.GraphTraversalEndPredicate.endTraversalAfter(Graph<A, B>.Arc addedArc, Graph<A, B>.Node addedNode, C addedNodeContext) Predicate answering the question "Must we end the traversal after we added the specific arc, node and calculated the specific node context?"GraphPath.prependArc(Graph<N, A>.Arc arc) Prepends the specified arc and its source node to this path.booleanAttempts to remove the specified arc from the graph.Method parameters in com.amalgamasimulation.graph with type arguments of type Graph.ArcModifier and TypeMethodDescriptionstatic <A,B> GraphPath <A, B> Algorithm.calculateShortestPath(Graph<A, B> graph, Graph<A, B>.Node sourceNode, Graph<A, B>.Node destNode, Map<Graph<A, B>.Node, Double> outNodeWeights, Set<Graph<A, B>.Arc> outArcsVisited) Calculates shortest path between the two specified nodes having data about nodes of the minimal spanning tree and arcs of the minimal spanning tree, i.e.Algorithm.getClosestNodes(Graph<A, B> graph, Graph<A, B>.Node sourceNode, Predicate<Graph<A, B>.Node> destNodeIndicator, double range, Function<Graph<A, B>.Arc, Double> arcWeighter, Function<Graph<A, B>.Node, Double> nodeWeighter) Returns list of pairs of nodes and distances to them from the specified source node satisfying the condition determined by the specified indicator.Algorithm.getClosestNodes(Graph<A, B> graph, Graph<A, B>.Node sourceNode, Predicate<Graph<A, B>.Node> destNodeIndicator, double range, Function<Graph<A, B>.Arc, Double> arcWeighter, Function<Graph<A, B>.Node, Double> nodeWeighter, int maxNodesCount) Returns list of pairs of nodes and distances to them from the specified source node satisfying the condition determined by the specified indicator.Algorithm.getClosestNodes(Graph<A, B> graph, Graph<A, B>.Node sourceNode, Predicate<Graph<A, B>.Node> destNodeIndicator, double range, Function<Graph<A, B>.Arc, Double> arcWeighter, Function<Graph<A, B>.Node, Double> nodeWeighter, Map<Graph<A, B>.Node, Double> outNodeWeights, Set<Graph<A, B>.Arc> outArcsVisited) Returns list of pairs of nodes and distances to them from the specified source node satisfying the condition determined by the specified indicator.Algorithm.getClosestNodes(Graph<A, B> graph, Graph<A, B>.Node sourceNode, Predicate<Graph<A, B>.Node> destNodeIndicator, double range, Function<Graph<A, B>.Arc, Double> arcWeighter, Function<Graph<A, B>.Node, Double> nodeWeighter, Map<Graph<A, B>.Node, Double> outNodeWeights, Set<Graph<A, B>.Arc> outArcsVisited) Returns list of pairs of nodes and distances to them from the specified source node satisfying the condition determined by the specified indicator.Algorithm.getClosestNodes(Graph<A, B> graph, Graph<A, B>.Node sourceNode, Predicate<Graph<A, B>.Node> destNodeIndicator, double range, Function<Graph<A, B>.Arc, Double> arcWeighter, Function<Graph<A, B>.Node, Double> nodeWeighter, Map<Graph<A, B>.Node, Double> outNodeWeights, Set<Graph<A, B>.Arc> outArcsVisited, int maxNodesCount) Returns list of pairs of nodes and distances to them from the specified source node satisfying the condition determined by the specified indicator.Algorithm.getClosestNodes(Graph<A, B> graph, Graph<A, B>.Node sourceNode, Predicate<Graph<A, B>.Node> destNodeIndicator, double range, Function<Graph<A, B>.Arc, Double> arcWeighter, Function<Graph<A, B>.Node, Double> nodeWeighter, Map<Graph<A, B>.Node, Double> outNodeWeights, Set<Graph<A, B>.Arc> outArcsVisited, int maxNodesCount) Returns list of pairs of nodes and distances to them from the specified source node satisfying the condition determined by the specified indicator.Algorithm.getMinPathWithContext(Graph<A, B> graph, Graph<A, B>.Node sourceNode, BiPredicate<Graph<A, B>.Node, T> searchSuccessPredicate, T sourceNodeContext, BiFunction<T, Graph<A, B>.Arc, T> contextProvider, Comparator<T> contextComparator) Returns a minimal-context path in the graph using a context-aware variant of Dijkstra’s algorithm.static <A,B> GraphPath <A, B> Algorithm.getShortestPath(Graph<A, B> graph, Graph<A, B>.Node sourceNode, Graph<A, B>.Node destNode, Function<Graph<A, B>.Arc, Double> arcWeighter, Function<Graph<A, B>.Node, Double> nodeWeighter) Returns shortest path between the two specified graph nodes.static <A,B> GraphPath <A, B> Algorithm.getShortestPath(Graph<A, B> graph, Graph<A, B>.Node sourceNode, Graph<A, B>.Node destNode, Function<Graph<A, B>.Arc, Double> arcWeighter, Function<Graph<A, B>.Node, Double> nodeWeighter, double range) Returns shortest path between the two specified graph nodes if the total weight of such path does not exceed the specified range.static <A,B> GraphPath <A, B> Algorithm.getShortestPath(Graph<A, B> graph, Graph<A, B>.Node sourceNode, Graph<A, B>.Node destNode, Function<Graph<A, B>.Arc, Double> arcWeighter, Function<Graph<A, B>.Node, Double> nodeWeighter, Map<Graph<A, B>.Node, Double> outNodeWeights, Set<Graph<A, B>.Arc> outArcsVisited) Returns shortest path between the two specified graph nodes.static <A,B> GraphPath <A, B> Algorithm.getShortestPath(Graph<A, B> graph, Graph<A, B>.Node sourceNode, Graph<A, B>.Node destNode, Function<Graph<A, B>.Arc, Double> arcWeighter, Function<Graph<A, B>.Node, Double> nodeWeighter, Map<Graph<A, B>.Node, Double> outNodeWeights, Set<Graph<A, B>.Arc> outArcsVisited) Returns shortest path between the two specified graph nodes.static <A,B> GraphPath <A, B> Algorithm.getShortestPath(Graph<A, B> graph, Graph<A, B>.Node sourceNode, Graph<A, B>.Node destNode, Function<Graph<A, B>.Arc, Double> arcWeighter, Function<Graph<A, B>.Node, Double> nodeWeighter, Map<Graph<A, B>.Node, Double> outNodeWeights, Set<Graph<A, B>.Arc> outArcsVisited, double range) Returns shortest path between the two specified graph nodes if the total weight of such path does not exceed the specified range.static <A,B> GraphPath <A, B> Algorithm.getShortestPath(Graph<A, B> graph, Graph<A, B>.Node sourceNode, Graph<A, B>.Node destNode, Function<Graph<A, B>.Arc, Double> arcWeighter, Function<Graph<A, B>.Node, Double> nodeWeighter, Map<Graph<A, B>.Node, Double> outNodeWeights, Set<Graph<A, B>.Arc> outArcsVisited, double range) Returns shortest path between the two specified graph nodes if the total weight of such path does not exceed the specified range.static <A,B> GraphPath <A, B> Algorithm.getShortestPath(Graph<A, B> graph, Graph<A, B>.Node sourceNode, Predicate<Graph<A, B>.Node> destNodeIndicator, Function<Graph<A, B>.Arc, Double> arcWeighter, Function<Graph<A, B>.Node, Double> nodeWeighter) Returns shortest path from the specified graph node to the closest graph node satisfying the condition determined by the specified indicator.static <A,B> GraphPath <A, B> Algorithm.getShortestPath(Graph<A, B> graph, Graph<A, B>.Node sourceNode, Predicate<Graph<A, B>.Node> destNodeIndicator, Function<Graph<A, B>.Arc, Double> arcWeighter, Function<Graph<A, B>.Node, Double> nodeWeighter, double range) Returns shortest path from the specified graph node to the closest graph node satisfying the condition determined by the specified indicator if the total weight of such path does not exceed the specified range.static <A,B> GraphPath <A, B> Algorithm.getShortestPath(Graph<A, B> graph, Graph<A, B>.Node sourceNode, Predicate<Graph<A, B>.Node> destNodeIndicator, Function<Graph<A, B>.Arc, Double> arcWeighter, Function<Graph<A, B>.Node, Double> nodeWeighter, Map<Graph<A, B>.Node, Double> outNodeWeights, Set<Graph<A, B>.Arc> outArcsVisited) Returns shortest path from the specified graph node to the closest graph node satisfying the condition determined by the specified indicator.static <A,B> GraphPath <A, B> Algorithm.getShortestPath(Graph<A, B> graph, Graph<A, B>.Node sourceNode, Predicate<Graph<A, B>.Node> destNodeIndicator, Function<Graph<A, B>.Arc, Double> arcWeighter, Function<Graph<A, B>.Node, Double> nodeWeighter, Map<Graph<A, B>.Node, Double> outNodeWeights, Set<Graph<A, B>.Arc> outArcsVisited) Returns shortest path from the specified graph node to the closest graph node satisfying the condition determined by the specified indicator.static <A,B> GraphPath <A, B> Algorithm.getShortestPath(Graph<A, B> graph, Graph<A, B>.Node sourceNode, Predicate<Graph<A, B>.Node> destNodeIndicator, Function<Graph<A, B>.Arc, Double> arcWeighter, Function<Graph<A, B>.Node, Double> nodeWeighter, Map<Graph<A, B>.Node, Double> outNodeWeights, Set<Graph<A, B>.Arc> outArcsVisited, double range) Returns shortest path from the specified graph node to the closest graph node satisfying the condition determined by the specified indicator, if the total weight of such path does not exceed the specified range.static <A,B> GraphPath <A, B> Algorithm.getShortestPath(Graph<A, B> graph, Graph<A, B>.Node sourceNode, Predicate<Graph<A, B>.Node> destNodeIndicator, Function<Graph<A, B>.Arc, Double> arcWeighter, Function<Graph<A, B>.Node, Double> nodeWeighter, Map<Graph<A, B>.Node, Double> outNodeWeights, Set<Graph<A, B>.Arc> outArcsVisited, double range) Returns shortest path from the specified graph node to the closest graph node satisfying the condition determined by the specified indicator, if the total weight of such path does not exceed the specified range.static <A,B> GraphPath <A, B> Algorithm.getShortestPath(Graph<A, B> graph, Graph<A, B>.Node sourceNode, Predicate<Graph<A, B>.Node> destNodeIndicator, Function<Graph<A, B>.Arc, Double> arcWeighter, Function<Graph<A, B>.Node, Double> nodeWeighter, Map<Graph<A, B>.Node, Double> outNodeWeights, Set<Graph<A, B>.Arc> outArcsVisited, Set<Graph<A, B>.Arc> barrierArcs, double range) Returns shortest path from the specified graph node to the closest graph node satisfying the condition determined by the specified indicator.static <A,B> GraphPath <A, B> Algorithm.getShortestPath(Graph<A, B> graph, Graph<A, B>.Node sourceNode, Predicate<Graph<A, B>.Node> destNodeIndicator, Function<Graph<A, B>.Arc, Double> arcWeighter, Function<Graph<A, B>.Node, Double> nodeWeighter, Map<Graph<A, B>.Node, Double> outNodeWeights, Set<Graph<A, B>.Arc> outArcsVisited, Set<Graph<A, B>.Arc> barrierArcs, double range) Returns shortest path from the specified graph node to the closest graph node satisfying the condition determined by the specified indicator.static <A,B> GraphPath <A, B> Algorithm.getShortestPath(Graph<A, B> graph, Graph<A, B>.Node sourceNode, List<Predicate<Graph<A, B>.Node>> destNodeIndicators, Function<Graph<A, B>.Arc, Double> arcWeighter, Function<Graph<A, B>.Node, Double> nodeWeighter) Returns shortest path from the specified graph node through nodes specified by indicators.intGraph.removeAllArcs(Collection<Graph<N, A>.Arc> arcsToRemove) Attempts to remove all specified arcs from the graph and returns number of arcs actually removed.Constructors in com.amalgamasimulation.graph with parameters of type Graph.ArcModifierConstructorDescriptionCreates a graph path consisting of the specified sequence of graph arcs and corresponding graph nodes.Constructor parameters in com.amalgamasimulation.graph with type arguments of type Graph.Arc -
Uses of Graph.Arc in com.amalgamasimulation.graphagent
Fields in com.amalgamasimulation.graphagent with type parameters of type Graph.ArcModifier and TypeFieldDescriptionLongAgentsEnvironment.arcsToSeizingAgentsLongAgentsEnvironment.arcsToWaitingAgentsGraphEnvironment.barrierArcsCacheLongAgent.occupiedArcsMethods in com.amalgamasimulation.graphagent that return Graph.ArcModifier and TypeMethodDescriptionCreates a new graph arc between the nodes with the specified values.GeometricGraphArcRecord.arc()Returns the value of thearcrecord component.GeometricGraphPosition.getArc()Returns the arc if this position points place on a graph arc,nullotherwiseGraphAgent.getCurrentArc()Returns the arc on which this agent is currently located, ornullif this agent is not currently located on an arcGraphEnvironment.getGraphArc(A arcValue) Returns graph arc (an instance ofGraph.Arc) containing the specified value.
LongAgent.getNextPathArc()Methods in com.amalgamasimulation.graphagent that return types with arguments of type Graph.ArcModifier and TypeMethodDescriptionCreates two new graph arcs (one forward and one backward) between the nodes with the specified values.Creates two new graph arcs (one forward and one backward) between the nodes with the specified values.GraphEnvironment.getArcs()Returns an unmodifiable list of all graph arcs.LongAgent.getOccupiedArcs()Returns the unmodifiable list of arcs currently occupied by this long agent.Methods in com.amalgamasimulation.graphagent with parameters of type Graph.ArcModifier and TypeMethodDescriptionvoidGraphAgent.afterEnteredArc(Graph<N, A>.Arc arc) Callback method called immediately after entering an arc.voidLongAgent.afterEnteredArc(Graph<N, A>.Arc arc) voidLongAgentTail.afterEnteredArc(Graph<N, A>.Arc arc) voidLongAgent.afterHeadEnteredArc(Graph<N, A>.Arc arc) Callback method called immediately after the head of this long agent enters an arc.booleanGraphAgent.allowEnterArc(Graph<N, A>.Arc arc) Callback method used to implement advanced functionality like passby or waiting for something specific before entering arcs.booleanLongAgent.allowEnterArc(Graph<N, A>.Arc arc) Appends the specified arc and its destination node to this path.voidGraphAgent.beforeExitedArc(Graph<N, A>.Arc arc) Callback method called before exiting entering an arc.voidLongAgent.beforeExitedArc(Graph<N, A>.Arc arc) voidLongAgentTail.beforeExitedArc(Graph<N, A>.Arc arc) voidLongAgent.beforeTailExitedArc(Graph<N, A>.Arc arc) Callback method called before the tail of this long agent exits an arc.protected voidLongAgent.checkArcsBeforeJumping(Graph<N, A>.Arc arc, double arcAbsOffset, List<Graph<N, A>.Arc> previousArcs) protected voidGraphAgent.enterArcInternal(Graph<N, A>.Arc arc, double arcAbsOffset, Segment segment, double segmentAbsOffset) doubleGeometricGraphPath.getLengthAlongArc(Graph<N, A>.Arc arc) Jumps this agent to the specified absolute offset of the specified arc of graph of this agent'sGraphEnvironment.voidJumps this agent to the specified arc at the specified absolute offset and places it on the specified list of previous arcs.protected voidLongAgent.jumpTo(Graph<N, A>.Arc arc, double arcAbsOffset, List<Graph<N, A>.Arc> previousArcs, boolean isFirsNodeIncluded, boolean isLastNodeIncluded) protected voidGraphAgent.jumpToInternal(Graph<N, A>.Arc arc, double arcAbsOffset) protected voidLongAgent.jumpToSeveralArcs(Graph<N, A>.Arc arc, double arcAbsOffset, List<Graph<N, A>.Arc> previousArcs, boolean isFirsNodeIncluded, boolean isLastNodeIncluded) static <N extends GeometricGraphNode,A extends GeometricGraphArc>
GeometricGraphPath<N, A> Creates a new instance ofGeometricGraphPathconsisting of zero, one, or several consecutive arcs.static <N extends GeometricGraphNode,A extends GeometricGraphArc>
GeometricGraphPosition<N, A> Returns an instance ofGeometricGraphPositionpointing to the point on the specified arc located at the specified absolute offset from arc's beginning.voidvoidGeometricGraphPath.prependArc(Graph<N, A>.Arc arc) Prepends the specified arc and its source node to this path.booleanMethod parameters in com.amalgamasimulation.graphagent with type arguments of type Graph.ArcModifier and TypeMethodDescriptionprotected voidLongAgent.checkArcsBeforeJumping(Graph<N, A>.Arc arc, double arcAbsOffset, List<Graph<N, A>.Arc> previousArcs) protected voidprotected voidprotected voidGraphEnvironment.getClosestNodes(Graph<N, A>.Node sourceNode, Predicate<Graph<N, A>.Node> destNodeIndicator, double range, GraphAgent<N, A> agent, Map<Graph<N, A>.Node, Double> outNodeWeights, Set<Graph<N, A>.Arc> outArcsVisited) GraphEnvironment.getClosestNodes(Graph<N, A>.Node sourceNode, Predicate<Graph<N, A>.Node> destNodeIndicator, double range, Map<Graph<N, A>.Node, Double> outNodeWeights, Set<Graph<N, A>.Arc> outArcsVisited) GraphEnvironment.getShortestPathBetweenNodesInternal(Graph<N, A> graph, Graph<N, A>.Node sourceNode, Graph<N, A>.Node destNode, Function<Graph<N, A>.Arc, Double> arcWeighter, Function<Graph<N, A>.Node, Double> nodeWeighter, Map<Graph<N, A>.Node, Double> nodeWeights, Set<Graph<N, A>.Arc> arcsVisited, GraphAgent<N, A> agent) GraphEnvironment.getShortestPathBetweenNodesInternal(Graph<N, A> graph, Graph<N, A>.Node sourceNode, Graph<N, A>.Node destNode, Function<Graph<N, A>.Arc, Double> arcWeighter, Function<Graph<N, A>.Node, Double> nodeWeighter, Map<Graph<N, A>.Node, Double> nodeWeights, Set<Graph<N, A>.Arc> arcsVisited, GraphAgent<N, A> agent) voidJumps this agent to the specified arc at the specified absolute offset and places it on the specified list of previous arcs.protected voidLongAgent.jumpTo(Graph<N, A>.Arc arc, double arcAbsOffset, List<Graph<N, A>.Arc> previousArcs, boolean isFirsNodeIncluded, boolean isLastNodeIncluded) voidJumps this agent to the specified position and places it on the specified list of previous arcs.protected voidLongAgent.jumpToSeveralArcs(Graph<N, A>.Arc arc, double arcAbsOffset, List<Graph<N, A>.Arc> previousArcs, boolean isFirsNodeIncluded, boolean isLastNodeIncluded) static <N extends GeometricGraphNode,A extends GeometricGraphArc>
GeometricGraphPath<N, A> Creates a new instance ofGeometricGraphPathconsisting of zero, one, or several consecutive arcs.Constructors in com.amalgamasimulation.graphagent with parameters of type Graph.ArcModifierConstructorDescriptionGeometricGraphArcRecord(int arcIndex, Graph<N, A>.Arc arc, Interval arcAbsOffsets, Interval pathAbsOffsets, GeometricGraphPosition<N, A> beginPosition, GeometricGraphPosition<N, A> endPosition) Creates an instance of aGeometricGraphArcRecordrecord class.GeometricGraphPath(Graph<N, A>.Arc arc, double arcBeginAbsOffset, double arcEndAbsOffset) Creates a new instance of graph path consisting of a fraction of the single specified arc located between the specified offsets.GeometricGraphPosition(Graph<N, A>.Arc arc, double arcAbsOffset) Creates a new position pointing to the point on the specified arc located at the specified absolute offset from arc's beginning. -
Uses of Graph.Arc in com.amalgamasimulation.trains
Methods in com.amalgamasimulation.trains that return Graph.ArcModifier and TypeMethodDescriptionRailTrack.getBackwardArc()Returns the graph arc corresponding to backward direction of this track.RailTrack.getForwardArc()Returns the graph arc corresponding to forward direction of this track.Methods in com.amalgamasimulation.trains that return types with arguments of type Graph.ArcModifier and TypeMethodDescriptionMethods in com.amalgamasimulation.trains with parameters of type Graph.ArcModifier and TypeMethodDescriptionvoidTrain.afterHeadEnteredArc(Graph<RailNode, RailArc>.Arc arc) voidTrain.beforeExitedArc(Graph<RailNode, RailArc>.Arc arc) voidTrain.beforeTailExitedArc(Graph<RailNode, RailArc>.Arc arc) protected voidTrain.checkArcsBeforeJumping(Graph<RailNode, RailArc>.Arc arc, double arcAbsOffset, List<Graph<RailNode, RailArc>.Arc> previousArcs) TrainsEnvironment.createNewRailTrack(String name, Graph<RailNode, RailArc>.Arc forwardArc, Graph<RailNode, RailArc>.Arc backwardArc) Creates a newRailTrackwith the specified name and connecting arcs.static doubleTrainsEnvironment.getAngleBetweenArcs(Graph<RailNode, RailArc>.Arc prevArc, Graph<RailNode, RailArc>.Arc nextArc) Calculates the angle (in radians) between two consecutive arcs.protected doubleTrainsEnvironment.getEndMovementTime(List<Graph<RailNode, RailArc>.Arc> arcs, double agentLengthBeforeDestNode, double beginTime, double velocity, double agentLength, Graph<RailNode, RailArc>.Arc beforePathSourceArc, boolean isIncludeArcAfterNode, Graph<RailNode, RailArc>.Node destNode, LongAgentWeightKey weighterKey) protected doubleTrainsEnvironment.getStartMovementTime(com.amalgamasimulation.trains.TrainsEnvironment.ContextRecord context, double agentLengthBeforeDestNode, double beginTime, double velocity, double agentLength, Graph<RailNode, RailArc>.Arc beforePathSourceArc, boolean isIncludeArcAfterNode, Graph<RailNode, RailArc>.Node destNode, LongAgentWeightKey weighterKey) booleanTrainsEnvironment.isAngleSharp(Graph<RailNode, RailArc>.Arc prevArc, Graph<RailNode, RailArc>.Arc nextArc) Determines whether the corner formed by two consecutive arcs is a sharp angle.Jumps this agent to the specified absolute offset of the specified arc of graph of this agent'sGraphEnvironment.voidTrain.jumpTo(Graph<RailNode, RailArc>.Arc arc, double arcAbsOffset, List<Graph<RailNode, RailArc>.Arc> previousArcs, boolean shouldBookArcs) Jumps this agent to the specified arc at the specified absolute offset and places it on the specified list of previous arcs.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.Method parameters in com.amalgamasimulation.trains with type arguments of type Graph.ArcModifier and TypeMethodDescriptionprotected voidTrain.checkArcsBeforeJumping(Graph<RailNode, RailArc>.Arc arc, double arcAbsOffset, List<Graph<RailNode, RailArc>.Arc> previousArcs) protected doubleTrainsEnvironment.getEndMovementTime(List<Graph<RailNode, RailArc>.Arc> arcs, double agentLengthBeforeDestNode, double beginTime, double velocity, double agentLength, Graph<RailNode, RailArc>.Arc beforePathSourceArc, boolean isIncludeArcAfterNode, Graph<RailNode, RailArc>.Node destNode, LongAgentWeightKey weighterKey) voidTrain.jumpTo(Graph<RailNode, RailArc>.Arc arc, double arcAbsOffset, List<Graph<RailNode, RailArc>.Arc> previousArcs, boolean shouldBookArcs) Jumps this agent to the specified arc at the specified absolute offset and places it on the specified list of previous arcs.Constructors in com.amalgamasimulation.trains with parameters of type Graph.Arc