Record Class InstanceProcessingStartedEvent

java.lang.Object
java.lang.Record
es.urjc.etsii.grafo.events.types.InstanceProcessingStartedEvent
All Implemented Interfaces:
MorkEvent

public record InstanceProcessingStartedEvent(String experimentName, String instanceName, List<String> algorithms, int repetitions, Map<String,Double> refValues) extends Record implements MorkEvent
Triggered when starting an experiment before any other action occurs
  • Constructor Details

    • InstanceProcessingStartedEvent

      public InstanceProcessingStartedEvent(String experimentName, String instanceName, List<String> algorithms, int repetitions, Map<String,Double> refValues)
      Creates an instance of a InstanceProcessingStartedEvent record class.
      Parameters:
      experimentName - the value for the experimentName record component
      instanceName - the value for the instanceName record component
      algorithms - the value for the algorithms record component
      repetitions - the value for the repetitions record component
      refValues - the value for the refValues record component
    • InstanceProcessingStartedEvent

      public InstanceProcessingStartedEvent(String experimentName, String instanceName, Collection<? extends Algorithm<?,?>> algorithms, int repetitions, Map<String,Double> refValues)
      Create a new InstanceProcessingStartedEvent
      Parameters:
      experimentName - experiment name
      instanceName - instance name
      algorithms - list of algorithms to execute in the current experiment
      repetitions - number of repetitions for each (instance, algorithm) pair
      refValues - best values for the given instance, keyed by objective name
  • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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.
    • experimentName

      public String experimentName()
      Returns the value of the experimentName record component.
      Returns:
      the value of the experimentName record component
    • instanceName

      public String instanceName()
      Returns the value of the instanceName record component.
      Returns:
      the value of the instanceName record component
    • algorithms

      public List<String> algorithms()
      Returns the value of the algorithms record component.
      Returns:
      the value of the algorithms record component
    • repetitions

      public int repetitions()
      Returns the value of the repetitions record component.
      Returns:
      the value of the repetitions record component
    • refValues

      public Map<String,Double> refValues()
      Returns the value of the refValues record component.
      Returns:
      the value of the refValues record component