Contents
Class EdgeSelector
java.lang.Object
com.hypixel.hytale.builtin.hytalegenerator.graph.edgeselectors.EdgeSelector
- Direct Known Subclasses:
AllEdgeSelector, AndEdgeSelector, AngleEdgeSelector, LengthEdgeSelector, NodesEdgeSelector, NotEdgeSelector, OrEdgeSelector, RandomEdgeSelector
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract doublegetInteractionRange(double longestConnection) Returns the read range of this selector, measured from one endpoint of the processed edge.abstract booleanisSelected(GraphSpace graphSpace, GraphSpace.Edge edge)
-
Constructor Details
-
EdgeSelector
public EdgeSelector()
-
-
Method Details
-
isSelected
-
getInteractionRange
public abstract double getInteractionRange(double longestConnection) Returns the read range of this selector, measured from one endpoint of the processed edge. The range must cover the farthest graph state this selector reads, from either endpoint. The other endpoint can be up tolongestConnectionaway. Reads that touch it, or that reach beyond it, must include that distance in the returned range. If the declared range is too small, generation near region borders is nondeterministic.- Parameters:
longestConnection- the longest edge length that can exist in the graph at this pass
-