Uses of Class
com.amalgamasimulation.graphagent.GeometricGraphPath
Packages that use GeometricGraphPath
-
Uses of GeometricGraphPath in com.amalgamasimulation.graphagent
Subclasses of GeometricGraphPath in com.amalgamasimulation.graphagentModifier and TypeClassDescriptionclassAgentGraphPath<N extends AgentGraphNode,A extends AgentGraphArc> Path of aGraphAgentfrom someGeometricGraphPositionto some other, probably equal or adjacentGeometricGraphPosition.Fields in com.amalgamasimulation.graphagent declared as GeometricGraphPathMethods in com.amalgamasimulation.graphagent that return GeometricGraphPathModifier and TypeMethodDescriptionAppends the specified other path to this path.Appends the specified arc and its destination node to this path.LongAgent.getAnimationSelfPath()Returns theGeometricGraphPaththat represents the projection of a long agent onto the graph.GeometricGraphPath.getReversePath(Graph<N, A> graph) Returns a reverse path of this path, i.e.LongAgent.getSelfPath()Returns theGeometricGraphPaththat represents the projection of a long agent onto the graph.GeometricGraphPath.getSubPath(Interval absOffsets) Returns a new instance ofGeometricGraphPath()that is a sub-path of this path between the absolute offsets specified by theIntervalinstance.GeometricGraphPath.getSubPathBetweenOffsets(double beginAbsOffset, double endAbsOffset) Returns a new instance ofGeometricGraphPath()that is a sub-path of this path between the specified absolute offsets.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>
GeometricGraphPath<N, A> Creates a new zero-length path consisting only of a position at the specified node.static <N extends GeometricGraphNode,A extends GeometricGraphArc>
GeometricGraphPath<N, A> GeometricGraphPath.of(GeometricGraphPosition<N, A> position) Creates a new zero-length path consisting only of the specified position.static <N extends GeometricGraphNode,A extends GeometricGraphArc>
GeometricGraphPath<N, A> Creates a new instance ofGeometricGraphPathconsisting of zero, one, or several consecutive arcs.Prepends the specified other path to this path.GeometricGraphPath.prependArc(Graph<N, A>.Arc arc) Prepends the specified arc and its source node to this path.Methods in com.amalgamasimulation.graphagent that return types with arguments of type GeometricGraphPathModifier and TypeMethodDescriptionLongAgentsEnvironment.getAgentsOverlay(GeometricGraphPath<N, A> expectedOverlayPath) GeometricGraphPath.getIntersection(GeometricGraphPath<N, A> otherPath, Graph<N, A> graph) Returns a list of sub-paths representing fragments of this path where it intersects with the specified other path.GeometricGraphPath.getIntersectionIgnoreDirection(GeometricGraphPath<N, A> otherPath, Graph<N, A> graph) Returns a list of sub-paths representing fragments of this path where it intersects with the specified other path.GeometricGraphPath.getSubPaths(IntervalLike absOffsets) Returns a list of sub-paths specified by a set of intervals of absolute offsets.Methods in com.amalgamasimulation.graphagent with parameters of type GeometricGraphPathModifier and TypeMethodDescriptionLongAgentsEnvironment.getAgentsOverlay(GeometricGraphPath<N, A> expectedOverlayPath) GeometricGraphPath.getIntersection(GeometricGraphPath<N, A> otherPath, Graph<N, A> graph) Returns a list of sub-paths representing fragments of this path where it intersects with the specified other path.GeometricGraphPath.getIntersectionIgnoreDirection(GeometricGraphPath<N, A> otherPath, Graph<N, A> graph) Returns a list of sub-paths representing fragments of this path where it intersects with the specified other path.GeometricGraphPath.getIntersectionOffsets(GeometricGraphPath<N, A> otherPath) Returns anIntervalSetinstance representing intervals of absolute offsets where this path intersects with the specified other path.GeometricGraphPath.getIntersectionOffsetsIgnoreDirection(GeometricGraphPath<N, A> otherPath, Graph<N, A> graph) Returns anIntervalSetinstance representing intervals of absolute offsets where this path intersects with the specified other path.booleanGeometricGraphPath.hasNonZeroIntersection(GeometricGraphPath<N, A> otherPath) Checks whether this path has a non-zero length intersection with the other specified path, considering the direction on bi-directional arcs, if any.booleanGeometricGraphPath.hasNonZeroIntersectionIgnoreDirection(GeometricGraphPath<N, A> otherPath, Graph<N, A> graph) Checks whether this path has a non-zero length intersection with the specified other path, ignoring the direction of the paths' arcs.Constructors in com.amalgamasimulation.graphagent with parameters of type GeometricGraphPathModifierConstructorDescriptionAgentGraphPath(GeometricGraphPath<N, A> geometricGraphPath) AgentGraphPath(GeometricGraphPath<N, A> geometricGraphPath, boolean requiresTurnAtSource, boolean requiresTurnDestSource, Graph<N, A> graph) protectedGeometricGraphPath(GeometricGraphPath<N, A> otherPath) -
Uses of GeometricGraphPath in com.amalgamasimulation.trains
Methods in com.amalgamasimulation.trains with parameters of type GeometricGraphPathModifier and TypeMethodDescriptionvoidTrainRoute.bookIntervals(Object booker, double startMovementTime, double trainVelocity, GeometricGraphPath<RailNode, RailArc> sourceSelfPath) Books time intervals along this route for the specifiedTrainmovement.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.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.