public interface ChooseBlockYardStrategy
Yard
to find a certain block to store or retrieve
a container there. The method getBlock(Block[] blocks) that gives the needed
block must be implemented by the user in a class that implements
TransportStrategy to define the strategy which will be used by the yard.
ChooseBlockYardStrategy is part of the strategy design pattern as described
in [Gamm97] page 333 in which it represents the strategy interface.Block
,
Yard
Modifier and Type | Method and Description |
---|---|
Block |
getBlock(Block[] blocks)
Implement this method in a class that implements this interface to define
the algorithm of the strategy that finds a certain block and is used by
the yard.
|