Record Class SchedulerService
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.scheduler.server.services.SchedulerService
services operations at the intersection of plans and scheduling goals; eg scheduling instances to satisfy goals
provides both mutation operations to actively improve a plan's goal satisfaction score (eg by inserting activity
instances into the plan) and passive queries to ascertain the current satisfaction level of a plan
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aSchedulerServicerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getScheduleResults(ScheduleRequest request, String requestedBy) schedules activity instances into the target plan in order to further satisfy the associated scheduling goalsfinal inthashCode()Returns a hash code value for this object.store()Returns the value of thestorerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SchedulerService
Creates an instance of aSchedulerServicerecord class.- Parameters:
store- the value for thestorerecord component
-
-
Method Details
-
getScheduleResults
schedules activity instances into the target plan in order to further satisfy the associated scheduling goals- Parameters:
request- details of the scheduling request, including the target plan and goals to operate on- Returns:
- summary of the scheduling run, including goal satisfaction metrics and changes made
-
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). -
store
Returns the value of thestorerecord component.- Returns:
- the value of the
storerecord component
-