AnyLogic
Expand
Font size
All Implemented Interfaces:
IAStarProvider

public class NetworkAStarProvider
extends BaseNetworkAStarProvider

Constructor Summary

ConstructorDescription
NetworkAStarProvider(Object sourceVertex, Point sourcePos, Object targetVertex, Point targetPos) 

Method Summary

Modifier and TypeMethodDescription
List<Object>getIngoingEdges(Object vertex, Object fromEdge) 
List<Object>getIngoingVertices(Object vertex, Object edge) 
List<Object>getOutgoingVertices(Object vertex, Object edge) 
booleanisCompatibleEdge(Object element) 
booleanisCompatibleVertex(Object element) 
booleanskipEdge(Object edge, Predicate<Object> filter) 
booleanskipVertex(Object vertex, Predicate<Object> filter) 

Methods inherited from class com.anylogic.engine.routing.finders.BaseNetworkAStarProvider

getEdgeScore, getHeuristicScore, getOppositeVertices, getOutgoingEdges, getVertexScore

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

NetworkAStarProvider

public NetworkAStarProvider(Object sourceVertex,
 Point sourcePos,
 Object targetVertex,
 Point targetPos)

Method Details

skipVertex

public boolean skipVertex(Object vertex,
 Predicate<Object> filter)
Specified by:
skipVertex in interface IAStarProvider
Overrides:
skipVertex in class BaseNetworkAStarProvider

skipEdge

public boolean skipEdge(Object edge,
 Predicate<Object> filter)
Specified by:
skipEdge in interface IAStarProvider
Overrides:
skipEdge in class BaseNetworkAStarProvider

isCompatibleVertex

public boolean isCompatibleVertex(Object element)

isCompatibleEdge

public boolean isCompatibleEdge(Object element)

getIngoingEdges

public List<Object> getIngoingEdges(Object vertex,
 Object fromEdge)

getOutgoingVertices

public List<Object> getOutgoingVertices(Object vertex,
 Object edge)
Parameters:
vertex -
edge -
Returns:
vertex (or vertices in port case) that can be reached from the provided vertex through provided edge

getIngoingVertices

public List<Object> getIngoingVertices(Object vertex,
 Object edge)
Parameters:
vertex -
edge -
Returns:
vertex (or vertices in port case) from which can be reached the provided vertex through provided edge