- java.lang.Object
-
- aeonics.template.Item<Step.Type>
-
- aeonics.entity.Step
-
- aeonics.entity.Step.Origin
-
- aeonics.entity.Scheduled
-
public class Scheduled extends Step.Origin
This class represents an origin step that is activated at regular interval.You should provide the
Scheduled.Type.task(Consumer)
and set a recurrence rule.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Scheduled.Type
-
Nested classes/interfaces inherited from class aeonics.entity.Step.Origin
Step.Origin.Background, Step.Origin.NetworkClient, Step.Origin.NetworkServer
-
Nested classes/interfaces inherited from class aeonics.entity.Step
Step.Action, Step.Destination, Step.Origin, Step.ROLE, Step.Template
-
-
Constructor Summary
Constructors Constructor Description Scheduled()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.function.Supplier<? extends Scheduled.Type>
defaultCreator()
Returns the default target entity creator.protected java.lang.Class<? extends Scheduled.Type>
defaultTarget()
Returns the default target entity type.Step.Template
template()
Returns the template to build the target entity.
-
-
-
Method Detail
-
defaultTarget
protected java.lang.Class<? extends Scheduled.Type> defaultTarget()
Description copied from class:Item
Returns the default target entity type. This method should be implemented by subclasses to specify the target entity type.- Overrides:
defaultTarget
in classStep.Origin
- Returns:
- the default target entity type
-
defaultCreator
protected java.util.function.Supplier<? extends Scheduled.Type> defaultCreator()
Description copied from class:Item
Returns the default target entity creator. This method should be implemented by subclasses to specify the entity creator.- Overrides:
defaultCreator
in classStep.Origin
- Returns:
- the default target entity creator
-
template
public Step.Template template()
Description copied from class:Item
Returns the template to build the target entity.This method should ultimately be used to provide the final entity template. Although, it may also provide a partial template that subclassed may complement.
- Overrides:
template
in classStep.Origin
- Returns:
- the matching entity template
-
-