Interface AggregateTask
- All Known Subinterfaces:
AggregateTask.ComponentAggregateTask
,AggregateTask.SchedulerAggregateTask
,AggregateTask.StaticIpAggregateTask
- All Known Implementing Classes:
ComponentAggregateTaskImpl
,SchedulerAggregateTaskImpl
,StaticIpAggregateTaskImpl
public interface AggregateTask
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
static interface
static interface
-
Method Summary
Modifier and TypeMethodDescriptionvoid
aggregate
(AppConfiguration instance, AppConfiguration oldConfig) Aggregates the given instance.void
create
(User user, List<AppConfiguration> otherAppConfigurations) e.void
delete
(User user, List<AppConfiguration> otherAppConfigurations) e.void
reset()
Resets the task.
-
Method Details
-
aggregate
Aggregates the given instance.- Parameters:
instance
- theAppConfiguration
of the instanceoldConfig
- the old configuration of the instance
-
create
void create(User user, List<AppConfiguration> otherAppConfigurations) throws OpenemsError.OpenemsNamedException e. g. creates components that were aggregated by the instances and my also delete unused components.- Parameters:
user
- the executing userotherAppConfigurations
- the other existingAppConfiguration
s- Throws:
OpenemsError.OpenemsNamedException
- on error
-
delete
void delete(User user, List<AppConfiguration> otherAppConfigurations) throws OpenemsError.OpenemsNamedException e. g. deletes components that were aggregated.- Parameters:
user
- the executing userotherAppConfigurations
- the other existingAppConfiguration
s- Throws:
OpenemsError.OpenemsNamedException
- on error
-
reset
void reset()Resets the task.
-