Record Class NodeGraph<Solution_>
java.lang.Object
java.lang.Record
ai.timefold.solver.core.impl.bavet.visual.NodeGraph<Solution_>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<ai.timefold.solver.core.impl.bavet.visual.GraphEdge>edges()Returns the value of theedgesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static <Solution_,Stream_ extends BavetStream>
NodeGraph<Solution_>of(Solution_ solution, List<AbstractNode> nodeList, Set<Constraint> constraintSet, Function<AbstractNode, Stream_> nodeToStreamFunction, Function<Stream_, AbstractNode> streamToParentNodeFunction) sinks()Returns the value of thesinksrecord component.solution()Returns the value of thesolutionrecord component.sources()Returns the value of thesourcesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NodeGraph
public NodeGraph(Solution_ solution, List<AbstractNode> sources, List<ai.timefold.solver.core.impl.bavet.visual.GraphEdge> edges, List<ai.timefold.solver.core.impl.bavet.visual.GraphSink<Solution_>> sinks) Creates an instance of aNodeGraphrecord class.- Parameters:
solution- the value for thesolutionrecord componentsources- the value for thesourcesrecord componentedges- the value for theedgesrecord componentsinks- the value for thesinksrecord component
-
-
Method Details
-
of
public static <Solution_,Stream_ extends BavetStream> NodeGraph<Solution_> of(Solution_ solution, List<AbstractNode> nodeList, Set<Constraint> constraintSet, Function<AbstractNode, Stream_> nodeToStreamFunction, Function<Stream_, AbstractNode> streamToParentNodeFunction) -
buildGraphvizDOT
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
solution
Returns the value of thesolutionrecord component.- Returns:
- the value of the
solutionrecord component
-
sources
Returns the value of thesourcesrecord component.- Returns:
- the value of the
sourcesrecord component
-
edges
Returns the value of theedgesrecord component.- Returns:
- the value of the
edgesrecord component
-
sinks
Returns the value of thesinksrecord component.- Returns:
- the value of the
sinksrecord component
-