public class MaxDepthConstraint extends java.lang.Object implements LODNetworkConstraint
Constructor and Description |
---|
MaxDepthConstraint(int maxDepth) |
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)
Constraint
isSatisfied
in interface Constraint<LODAnalysisInfo>
info
- the analysis contextLODAnalysisInfo
public int[] getUserDataCategories()
LODNetworkConstraint
getUserDataCategories
in interface LODNetworkConstraint
public int getNumberOfUserObjects()
LODNetworkConstraint
getNumberOfUserObjects
in interface LODNetworkConstraint
public boolean isCurrentNodePartiallyExpanded(LODAnalysisInfo info)
LODNetworkConstraint
isCurrentNodePartiallyExpanded
in interface LODNetworkConstraint
public void reset()
LODNetworkConstraint
reset
in interface LODNetworkConstraint
public void setNetworkAnalyst(NetworkAnalyst analyst)
LODNetworkConstraint
setNetworkAnalyst
in interface LODNetworkConstraint