Record Class AutoconfigRunState.EvaluationView
java.lang.Object
java.lang.Record
es.urjc.etsii.grafo.autoconfig.service.AutoconfigRunState.EvaluationView
- Enclosing class:
AutoconfigRunState
public static record AutoconfigRunState.EvaluationView(long id, String configurationId, String instanceId, String instanceName, long seed, AutoconfigRunState.EvaluationState state, Double cost, Double timeSeconds, Instant startedAt, Instant finishedAt, String reasonCode, String message, boolean slow, Long slowOverrunMillis)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionEvaluationView(long id, String configurationId, String instanceId, String instanceName, long seed, AutoconfigRunState.EvaluationState state, Double cost, Double timeSeconds, Instant startedAt, Instant finishedAt, String reasonCode, String message, boolean slow, Long slowOverrunMillis) Creates an instance of aEvaluationViewrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconfigurationIdrecord component.cost()Returns the value of thecostrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefinishedAtrecord component.final inthashCode()Returns a hash code value for this object.longid()Returns the value of theidrecord component.Returns the value of theinstanceIdrecord component.Returns the value of theinstanceNamerecord component.message()Returns the value of themessagerecord component.Returns the value of thereasonCoderecord component.longseed()Returns the value of theseedrecord component.booleanslow()Returns the value of theslowrecord component.Returns the value of theslowOverrunMillisrecord component.Returns the value of thestartedAtrecord component.state()Returns the value of thestaterecord component.Returns the value of thetimeSecondsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EvaluationView
public EvaluationView(long id, String configurationId, String instanceId, String instanceName, long seed, AutoconfigRunState.EvaluationState state, Double cost, Double timeSeconds, Instant startedAt, Instant finishedAt, String reasonCode, String message, boolean slow, Long slowOverrunMillis) Creates an instance of aEvaluationViewrecord class.- Parameters:
id- the value for theidrecord componentconfigurationId- the value for theconfigurationIdrecord componentinstanceId- the value for theinstanceIdrecord componentinstanceName- the value for theinstanceNamerecord componentseed- the value for theseedrecord componentstate- the value for thestaterecord componentcost- the value for thecostrecord componenttimeSeconds- the value for thetimeSecondsrecord componentstartedAt- the value for thestartedAtrecord componentfinishedAt- the value for thefinishedAtrecord componentreasonCode- the value for thereasonCoderecord componentmessage- the value for themessagerecord componentslow- the value for theslowrecord componentslowOverrunMillis- the value for theslowOverrunMillisrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
public long id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
configurationId
Returns the value of theconfigurationIdrecord component.- Returns:
- the value of the
configurationIdrecord component
-
instanceId
Returns the value of theinstanceIdrecord component.- Returns:
- the value of the
instanceIdrecord component
-
instanceName
Returns the value of theinstanceNamerecord component.- Returns:
- the value of the
instanceNamerecord component
-
seed
public long seed()Returns the value of theseedrecord component.- Returns:
- the value of the
seedrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
cost
Returns the value of thecostrecord component.- Returns:
- the value of the
costrecord component
-
timeSeconds
Returns the value of thetimeSecondsrecord component.- Returns:
- the value of the
timeSecondsrecord component
-
startedAt
Returns the value of thestartedAtrecord component.- Returns:
- the value of the
startedAtrecord component
-
finishedAt
Returns the value of thefinishedAtrecord component.- Returns:
- the value of the
finishedAtrecord component
-
reasonCode
Returns the value of thereasonCoderecord component.- Returns:
- the value of the
reasonCoderecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
slow
public boolean slow()Returns the value of theslowrecord component.- Returns:
- the value of the
slowrecord component
-
slowOverrunMillis
Returns the value of theslowOverrunMillisrecord component.- Returns:
- the value of the
slowOverrunMillisrecord component
-