infoservice.dynamic
Class ADynamicCascadeBuildingStrategy
java.lang.Object
infoservice.dynamic.ADynamicCascadeBuildingStrategy
- All Implemented Interfaces:
- IDynamicCascadeBuildingStrategy
- Direct Known Subclasses:
- ComleteRandomStrategy
public abstract class ADynamicCascadeBuildingStrategy
- extends java.lang.Object
- implements IDynamicCascadeBuildingStrategy
Superclass for implementations of
IDynamicCascadeBuildingStrategy
Defines the convenient method
buildCascade
which builds MixCascade
objects
from a Vector
of MixInfo
- Author:
- LERNGRUPPE
Method Summary |
protected MixCascade |
buildCascade(java.util.Vector a_mixInfos)
Builds a MixCascade object using the MixInfo
objects in the given Vector . |
abstract java.util.Vector |
createCascades(java.util.Vector firstMixes,
java.util.Vector middleMixes,
java.util.Vector lastMixes,
long seed)
Creates new mix cascades out of the given first, middle and last mixes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ADynamicCascadeBuildingStrategy
public ADynamicCascadeBuildingStrategy()
createCascades
public abstract java.util.Vector createCascades(java.util.Vector firstMixes,
java.util.Vector middleMixes,
java.util.Vector lastMixes,
long seed)
throws java.lang.Exception
- Description copied from interface:
IDynamicCascadeBuildingStrategy
- Creates new mix cascades out of the given first, middle and last mixes.
The result is a
Vector
of MixCascade
s. The
given seed must be used as the seed for a PRNG, as all InfoServices must
come to the same resulting cascades.
- Specified by:
createCascades
in interface IDynamicCascadeBuildingStrategy
- Parameters:
firstMixes
- The MixInfo
s of the first mixes to be usedmiddleMixes
- The MixInfo
s of the middle mixes to be usedlastMixes
- The MixInfo
s of the last mixes to be usedseed
- The seed for the PRNG
- Returns:
- A
Vector
if MixCascade
containing
the new cascades
- Throws:
java.lang.Exception
buildCascade
protected MixCascade buildCascade(java.util.Vector a_mixInfos)
throws java.lang.Exception
- Builds a
MixCascade
object using the MixInfo
objects in the given Vector
.
- Parameters:
a_mixInfos
- The MixInfo
s for the mixes assigned to the
cascade
- Returns:
- The
MixCascade
representing the new cascade
- Throws:
java.lang.Exception