Record Class STNU.MDEM4RCInfo

java.lang.Object
java.lang.Record
it.univr.di.cstnu.algorithms.STNU.MDEM4RCInfo
Record Components:
rigidComponents - rigid components collapsed before running M4's dispatchability phase.
rep - representative map for nodes in rigid components.
offset - distance from each representative to each node in its rigid component.
Enclosing class:
STNU

static record STNU.MDEM4RCInfo(@Nonnull it.unimi.dsi.fastutil.objects.ObjectList<it.unimi.dsi.fastutil.objects.ObjectList<LabeledNode>> rigidComponents, @Nonnull it.unimi.dsi.fastutil.objects.Object2ObjectMap<LabeledNode, LabeledNode> rep, @Nonnull it.unimi.dsi.fastutil.objects.Object2IntMap<LabeledNode> offset) extends Record
Data returned by STNU.mdeM4b4ManageRCsForStnDisp(MDELocalInfoM3, Instant).
Version:
$Rev: 1178 $
Author:
Roberto Posenato
  • Constructor Summary

    Constructors
    Constructor
    Description
    MDEM4RCInfo(it.unimi.dsi.fastutil.objects.ObjectList<it.unimi.dsi.fastutil.objects.ObjectList<LabeledNode>> rigidComponents, it.unimi.dsi.fastutil.objects.Object2ObjectMap<LabeledNode, LabeledNode> rep, it.unimi.dsi.fastutil.objects.Object2IntMap<LabeledNode> offset)
    Creates an instance of a MDEM4RCInfo record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    it.unimi.dsi.fastutil.objects.Object2IntMap<LabeledNode>
    Returns the value of the offset record component.
    it.unimi.dsi.fastutil.objects.Object2ObjectMap<LabeledNode, LabeledNode>
    rep()
    Returns the value of the rep record component.
    it.unimi.dsi.fastutil.objects.ObjectList<it.unimi.dsi.fastutil.objects.ObjectList<LabeledNode>>
    Returns the value of the rigidComponents record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • MDEM4RCInfo

      MDEM4RCInfo(@Nonnull it.unimi.dsi.fastutil.objects.ObjectList<it.unimi.dsi.fastutil.objects.ObjectList<LabeledNode>> rigidComponents, @Nonnull it.unimi.dsi.fastutil.objects.Object2ObjectMap<LabeledNode, LabeledNode> rep, @Nonnull it.unimi.dsi.fastutil.objects.Object2IntMap<LabeledNode> offset)
      Creates an instance of a MDEM4RCInfo record class.
      Parameters:
      rigidComponents - the value for the rigidComponents record component
      rep - the value for the rep record component
      offset - the value for the offset record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • rigidComponents

      @Nonnull public it.unimi.dsi.fastutil.objects.ObjectList<it.unimi.dsi.fastutil.objects.ObjectList<LabeledNode>> rigidComponents()
      Returns the value of the rigidComponents record component.
      Returns:
      the value of the rigidComponents record component
    • rep

      @Nonnull public it.unimi.dsi.fastutil.objects.Object2ObjectMap<LabeledNode, LabeledNode> rep()
      Returns the value of the rep record component.
      Returns:
      the value of the rep record component
    • offset

      @Nonnull public it.unimi.dsi.fastutil.objects.Object2IntMap<LabeledNode> offset()
      Returns the value of the offset record component.
      Returns:
      the value of the offset record component