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