org.inria.myriads.snoozenode.groupmanager.energysaver
public final class EnergySaverFactory extends Object
Modifier and Type | Method and Description |
---|---|
static EnergySaver |
newEnergySaver(EnergyManagementSettings energySettings,
GroupManagerRepository repository,
StateMachine stateMachine)
Crates a new energy saver.
|
static WakeupResources |
newWakeupResource(int wakeupTimeout,
int commandExecutionTimeout,
GroupManagerRepository repository)
Creates a new resource wakeuper.
|
public static EnergySaver newEnergySaver(EnergyManagementSettings energySettings, GroupManagerRepository repository, StateMachine stateMachine)
energySettings
- The energy settingsrepository
- The group manager repositorystateMachine
- The state machinepublic static WakeupResources newWakeupResource(int wakeupTimeout, int commandExecutionTimeout, GroupManagerRepository repository)
wakeupTimeout
- The wakeup timeoutcommandExecutionTimeout
- The command execution timeoutrepository
- The grpip manager repositoryCopyright © 2013. All Rights Reserved.