public class RandomBlockYardStrategy extends ModelComponent implements ChooseBlockYardStrategy
Yard to find a certain block to store/retrieve a container by
the following way: the random block will be selected. RandomBlockYardStrategy
impements ChooseBlockYardStrategy.ChooseBlockYardStrategy,
ModelComponent| Constructor and Description |
|---|
RandomBlockYardStrategy(Model owner)
Constructs the RandomBlockYardStrategy for a yard.
|
| Modifier and Type | Method and Description |
|---|---|
Block |
getBlock(Block[] blocks)
This method describes the RandomBlockYardStrategy that is used by the
yard and returns the random selected block.
|
current, currentEntity, currentEntityAll, currentEvent, currentModel, currentSimProcess, debugIsOn, debugOff, debugOn, getModel, isExperimentCompatible, isModelCompatible, presentTime, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOngetName, getQuotedName, toStringpublic RandomBlockYardStrategy(Model owner)
owner - desmoj.Model : The model this RandomBlockYardStrategy is
associated to.public Block getBlock(Block[] blocks)
getBlock in interface ChooseBlockYardStrategyblocks - Block[] : The array of the blocks.Block[] : the found block.