public class MaxCostConstraint extends java.lang.Object implements LODNetworkConstraint
| Constructor and Description |
|---|
MaxCostConstraint(double maxCost) |
| Modifier and Type | Method and Description |
|---|---|
int |
getNumberOfUserObjects()
Returns the max number of user objects to be returned by the getCurrentUserObjects method in LODAnalysisInfo.
|
int[] |
getUserDataCategories()
Returns the required user data categories.
|
boolean |
isCurrentNodePartiallyExpanded(LODAnalysisInfo info)
While expanding a node during network search, the search algorithm may not be able to access all the outgoing links due to network constraint, and we call a node with unaccessible outgoing links partially expanded node.
|
boolean |
isSatisfied(LODAnalysisInfo info)
Checks if the constraint is satisfied.
|
void |
reset()
This method allows a stateful network constraint object to be reset to its original state and reused by network analysis functions.
|
void |
setNetworkAnalyst(NetworkAnalyst analyst)
This method allows caller to pass the network analyst object to this constraint, so that the constraint can call the analysis functions provided by the network analyst, or access the network explorer associated with the network analyst.
|
public boolean isSatisfied(LODAnalysisInfo info)
ConstraintisSatisfied in interface Constraint<LODAnalysisInfo>info - the analysis contextLODAnalysisInfopublic int[] getUserDataCategories()
LODNetworkConstraintgetUserDataCategories in interface LODNetworkConstraintpublic int getNumberOfUserObjects()
LODNetworkConstraintgetNumberOfUserObjects in interface LODNetworkConstraintpublic boolean isCurrentNodePartiallyExpanded(LODAnalysisInfo info)
LODNetworkConstraintisCurrentNodePartiallyExpanded in interface LODNetworkConstraintpublic void reset()
LODNetworkConstraintreset in interface LODNetworkConstraintpublic void setNetworkAnalyst(NetworkAnalyst analyst)
LODNetworkConstraintsetNetworkAnalyst in interface LODNetworkConstraint