Record Class ScheduledProcessStart

java.lang.Object
java.lang.Record
de.aristaflow.adept2.core.eventmanager.ScheduledProcessStart
Record Components:
name - The name which identifies this start. This must not be null.
templateID - The ID of the template of which instances are started or null if the latest template of the process type is started.
processType - The process type of whose latest template instances are started or null if the template is designated by its ID. An empty process type counts as none.
start - The scheduled start which states when, how and with which input values instances are started. This must not be null.

public record ScheduledProcessStart(String name, UUID templateID, String processType, ScheduledStart start) extends Record
A start of instances on a time schedule as the event manager executes it: a ScheduledStart together with the name which identifies it and the process it starts, either a template or the latest template of a process type. Two scheduled process starts are equal if their names, their processes and their scheduled starts are equal.
  • Constructor Details

    • ScheduledProcessStart

      public ScheduledProcessStart(String name, UUID templateID, String processType, ScheduledStart start)
      Creates a new scheduled process start, which designates its process either by a template ID or by a process type.
      Throws:
      IllegalArgumentException - If both or neither of template ID and process type are designated, an IllegalArgumentException will be thrown.
  • 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.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • templateID

      public UUID templateID()
      Returns the value of the templateID record component.
      Returns:
      the value of the templateID record component
    • processType

      public String processType()
      Returns the value of the processType record component.
      Returns:
      the value of the processType record component
    • start

      public ScheduledStart start()
      Returns the value of the start record component.
      Returns:
      the value of the start record component