Record Class STNU.STNUPhaseStatistics.PhaseStat
java.lang.Object
java.lang.Record
it.univr.di.cstnu.algorithms.STNU.STNUPhaseStatistics.PhaseStat
- Record Components:
name- phase label (e.g., "M1").timeNS- wall-clock time spent in the phase, in nanoseconds.ord- number of edges carrying an ordinary value.waitN- number of edges carrying a wait value. (NamedwaitN, notwait, becausewaitclashes with the final methodObject.wait()and is not a legal record component name.)contingent- number of contingent edges.total- ord + waitN + contingent.
- Enclosing class:
STNU.STNUPhaseStatistics
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecontingentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.intord()Returns the value of theordrecord component.longtimeNS()Returns the value of thetimeNSrecord component.final StringtoString()Returns a string representation of this record class.inttotal()Returns the value of thetotalrecord component.intwaitN()Returns the value of thewaitNrecord component.
-
Constructor Details
-
PhaseStat
Creates an instance of aPhaseStatrecord class.- Parameters:
name- the value for thenamerecord componenttimeNS- the value for thetimeNSrecord componentord- the value for theordrecord componentwaitN- the value for thewaitNrecord componentcontingent- the value for thecontingentrecord componenttotal- the value for thetotalrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
name
-
timeNS
-
ord
-
waitN
-
contingent
public int contingent()Returns the value of thecontingentrecord component.- Returns:
- the value of the
contingentrecord component
-
total
-