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 benull.templateID- The ID of the template of which instances are started ornullif the latest template of the process type is started.processType- The process type of whose latest template instances are started ornullif 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 benull.
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 Summary
ConstructorsConstructorDescriptionScheduledProcessStart(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. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.Returns the value of theprocessTyperecord component.start()Returns the value of thestartrecord component.Returns the value of thetemplateIDrecord component.final StringtoString()Returns a string representation of this record class.
-
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, anIllegalArgumentExceptionwill be thrown.
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
templateID
Returns the value of thetemplateIDrecord component.- Returns:
- the value of the
templateIDrecord component
-
processType
Returns the value of theprocessTyperecord component.- Returns:
- the value of the
processTyperecord component
-
start
Returns the value of thestartrecord component.- Returns:
- the value of the
startrecord component
-