Record Class GeometricGraphArcRecord<N extends GeometricGraphNode,A extends GeometricGraphArc>
java.lang.Object
java.lang.Record
com.amalgamasimulation.graphagent.GeometricGraphArcRecord<N,A>
public record GeometricGraphArcRecord<N extends GeometricGraphNode,A extends GeometricGraphArc> (int arcIndex, Graph<N extends GeometricGraphNode,A extends GeometricGraphArc>.Arc arc, Interval arcAbsOffsets, Interval pathAbsOffsets, GeometricGraphPosition<N extends GeometricGraphNode,A extends GeometricGraphArc> beginPosition, GeometricGraphPosition<N extends GeometricGraphNode,A extends GeometricGraphArc> endPosition)
extends Record
Record containing reference to an arc within a
GeometricGraphPath and
characteristics describing its position inside the GeometricGraphPath-
Constructor Summary
ConstructorsConstructorDescriptionGeometricGraphArcRecord(int arcIndex, Graph<N, A>.Arc arc, Interval arcAbsOffsets, Interval pathAbsOffsets, GeometricGraphPosition<N, A> beginPosition, GeometricGraphPosition<N, A> endPosition) Creates an instance of aGeometricGraphArcRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionarc()Returns the value of thearcrecord component.Returns the value of thearcAbsOffsetsrecord component.intarcIndex()Returns the value of thearcIndexrecord component.Returns the value of thebeginPositionrecord component.Returns the value of theendPositionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepathAbsOffsetsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GeometricGraphArcRecord
public GeometricGraphArcRecord(int arcIndex, Graph<N, A>.Arc arc, Interval arcAbsOffsets, Interval pathAbsOffsets, GeometricGraphPosition<N, A> beginPosition, GeometricGraphPosition<N, A> endPosition) Creates an instance of aGeometricGraphArcRecordrecord class.- Parameters:
arcIndex- the value for thearcIndexrecord componentarc- the value for thearcrecord componentarcAbsOffsets- the value for thearcAbsOffsetsrecord componentpathAbsOffsets- the value for thepathAbsOffsetsrecord componentbeginPosition- the value for thebeginPositionrecord componentendPosition- the value for theendPositionrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
arcIndex
public int arcIndex()Returns the value of thearcIndexrecord component.- Returns:
- the value of the
arcIndexrecord component
-
arc
Returns the value of thearcrecord component.- Returns:
- the value of the
arcrecord component
-
arcAbsOffsets
Returns the value of thearcAbsOffsetsrecord component.- Returns:
- the value of the
arcAbsOffsetsrecord component
-
pathAbsOffsets
Returns the value of thepathAbsOffsetsrecord component.- Returns:
- the value of the
pathAbsOffsetsrecord component
-
beginPosition
Returns the value of thebeginPositionrecord component.- Returns:
- the value of the
beginPositionrecord component
-
endPosition
Returns the value of theendPositionrecord component.- Returns:
- the value of the
endPositionrecord component
-