public class Scheduler extends Object
Constructor and Description |
---|
Scheduler()
Constructor initialising all Lists
|
Scheduler(Optimisation optimisation)
Constructor initialising all Lists and setting optimisation
|
Modifier and Type | Method and Description |
---|---|
Optimisation |
getoptimisation() |
List<UtilityControl> |
getUtilities() |
boolean |
givePermissions()
reads the optimised list of utilities and activates them and deactivates
the ones in the inactive list
|
boolean |
optimiseLists()
optimises the List of utilities to match the parameters
|
void |
setoptimisation(Optimisation optimisation)
Sets the optimisation type Optimisation object
|
void |
setUtilities(List<UtilityControl> utilities)
removes all items from the utilities list and replaces them with the new
list
|
void |
setUtilities(UtilityControl[] util)
removes all items from the utilities list and replaces them with the new
items
|
public Scheduler()
public Scheduler(Optimisation optimisation)
optimisation
- the optimisation objectpublic boolean givePermissions()
public boolean optimiseLists()
public List<UtilityControl> getUtilities()
public void setUtilities(List<UtilityControl> utilities)
utilities
- public void setUtilities(UtilityControl[] util)
util
- public Optimisation getoptimisation()
public void setoptimisation(Optimisation optimisation)
optimisation
- Copyright © 2015. All rights reserved.