be.lassi.domain
Class Submasters
java.lang.Object
be.lassi.base.SaveableObject
be.lassi.base.NamedObjects
be.lassi.domain.Submasters
- All Implemented Interfaces:
- LevelController, LevelProvider, java.lang.Iterable<Submaster>
public class Submasters
- extends NamedObjects
- implements LevelController, LevelProvider, java.lang.Iterable<Submaster>
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Submasters
public Submasters()
- Constructs a new instance.
Submasters
public Submasters(Dirty dirty)
Submasters
public Submasters(Dirty dirty,
int numberOfChannels)
- Constructs a new instance.
- Parameters:
dirty
- the dirty indicatornumberOfChannels
-
add
public void add(Submaster submaster)
equals
public boolean equals(java.lang.Object object)
-
- Overrides:
equals
in class java.lang.Object
get
public Submaster get(int index)
- Method get.
- Parameters:
index
-
- Returns:
- Submaster
getLevelValue
public float getLevelValue(long now,
int channelId)
-
- Specified by:
getLevelValue
in interface LevelController
getNamedObject
public NamedObject getNamedObject(int index)
- Gets the object at given index.
- Specified by:
getNamedObject
in class NamedObjects
- Parameters:
index
- the index of the object to be returned
- Returns:
- the object at given index
getNumberOfSubmasters
public int getNumberOfSubmasters()
- Method getNumberOfSubmasters.
- Returns:
- int
getValue
public float getValue(long now,
int channelIndex)
- Specified by:
getValue
in interface LevelProvider
iterator
public java.util.Iterator<Submaster> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<Submaster>
set
public void set(int index,
Submaster submaster)
- Method set.
- Parameters:
index
- submaster
-
size
public int size()
- The number of named objects in the collection.
- Specified by:
size
in class NamedObjects
- Returns:
- the number of objects in the collection