Package org.insa.graphs.algorithm
Interface ArcInspector
-
public interface ArcInspector
This class can be used to indicate to an algorithm which arcs can be used and the costs of the usable arcs..
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
getCost(Arc arc)
Find the cost of the given arc.int
getMaximumSpeed()
AbstractInputData.Mode
getMode()
boolean
isAllowed(Arc arc)
Check if the given arc can be used (is allowed).
-
-
-
Method Detail
-
isAllowed
boolean isAllowed(Arc arc)
Check if the given arc can be used (is allowed).- Parameters:
arc
- Arc to check.- Returns:
- true if the given arc is allowed.
-
getCost
double getCost(Arc arc)
Find the cost of the given arc.- Parameters:
arc
- Arc for which the cost should be returned.- Returns:
- Cost of the arc.
-
getMaximumSpeed
int getMaximumSpeed()
- Returns:
- The maximum speed for this inspector, or
GraphStatistics.NO_MAXIMUM_SPEED
if none is set.
-
getMode
AbstractInputData.Mode getMode()
- Returns:
- Mode for this arc inspector.
-
-