Package org.ivoa.dm.executionbroker
Class LifecycleSchedule
java.lang.Object
org.ivoa.dm.executionbroker.LifecycleSchedule
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations
@Embeddable
@VoDml(id="execbroker:LifecycleSchedule",
role=dataType)
public class LifecycleSchedule
extends Object
implements org.ivoa.vodml.jpa.JPAManipulations
Lifecycle schedule.
dataType: LifecycleSchedule
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for LifecycleSchedule, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected LifecycleStartDurationInterval.protected LifecycleStartDurationInstant.protected LifecycleStartDurationInstant. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new LifecycleScheduleCopy Constructor.LifecycleSchedule(LifecycleStartDurationInstant preparing, LifecycleStartDurationInterval available, LifecycleStartDurationInstant releasing) full parameter constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic LifecycleSchedulecreate a LifecycleSchedule in functional builder style.voidReturns available Attribute.Returns preparing Attribute.Returns releasing Attribute.voidsetAvailable(LifecycleStartDurationInterval pAvailable) Set available Attribute.voidsetPreparing(LifecycleStartDurationInstant pPreparing) Set preparing Attribute.voidsetReleasing(LifecycleStartDurationInstant pReleasing) Set releasing Attribute.voidupdateUsing(LifecycleSchedule other) Update this object with the content of the given object.withAvailable(LifecycleStartDurationInterval pAvailable) fluent setter for available Attribute.withPreparing(LifecycleStartDurationInstant pPreparing) fluent setter for preparing Attribute.withReleasing(LifecycleStartDurationInstant pReleasing) fluent setter for releasing Attribute.
-
Field Details
-
preparing
@VoDml(id="execbroker:LifecycleSchedule.preparing", role=attribute, type="execbroker:LifecycleStartDurationInstant", typeRole=dataType) protected LifecycleStartDurationInstant preparing. : Attribute preparing : multiplicity 1 -
available
@VoDml(id="execbroker:LifecycleSchedule.available", role=attribute, type="execbroker:LifecycleStartDurationInterval", typeRole=dataType) protected LifecycleStartDurationInterval available. : Attribute available : multiplicity 1 -
releasing
@VoDml(id="execbroker:LifecycleSchedule.releasing", role=attribute, type="execbroker:LifecycleStartDurationInstant", typeRole=dataType) protected LifecycleStartDurationInstant releasing. : Attribute releasing : multiplicity 1
-
-
Constructor Details
-
LifecycleSchedule
public LifecycleSchedule()Creates a new LifecycleSchedule -
LifecycleSchedule
public LifecycleSchedule(LifecycleStartDurationInstant preparing, LifecycleStartDurationInterval available, LifecycleStartDurationInstant releasing) full parameter constructor.- Parameters:
preparing- .available- .releasing- .
-
LifecycleSchedule
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
-
Method Details
-
updateUsing
Update this object with the content of the given object. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
getPreparing
Returns preparing Attribute.- Returns:
- preparing Attribute
-
setPreparing
Set preparing Attribute.- Parameters:
pPreparing- value to set
-
withPreparing
fluent setter for preparing Attribute.- Parameters:
pPreparing- value to set- Returns:
- LifecycleSchedule
-
getAvailable
Returns available Attribute.- Returns:
- available Attribute
-
setAvailable
Set available Attribute.- Parameters:
pAvailable- value to set
-
withAvailable
fluent setter for available Attribute.- Parameters:
pAvailable- value to set- Returns:
- LifecycleSchedule
-
getReleasing
Returns releasing Attribute.- Returns:
- releasing Attribute
-
setReleasing
Set releasing Attribute.- Parameters:
pReleasing- value to set
-
withReleasing
fluent setter for releasing Attribute.- Parameters:
pReleasing- value to set- Returns:
- LifecycleSchedule
-
createLifecycleSchedule
public static LifecycleSchedule createLifecycleSchedule(Consumer<LifecycleSchedule.LifecycleScheduleBuilder> f) create a LifecycleSchedule in functional builder style.- Parameters:
f- the functional builder.- Returns:
- an object initialized from the builder.
-
forceLoad
public void forceLoad()- Specified by:
forceLoadin interfaceorg.ivoa.vodml.jpa.JPAManipulations
-