public class PipeLinker extends GeometricalComponentLinker
PlantComponentLinker
that links Pipe
properties (length, radius, etc. and its base geometric properties) with the
Entry
instances in a DataComponent
.Constructor and Description |
---|
PipeLinker(PlantBlockManager plantManager)
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<EntryListener> |
linkComponents(PlantComponent plantComp,
DataComponent dataComp)
Overrides the default GeometricalComponentLinker behavior to add
Pipe-specific properties (length, radius, etc.).
|
public PipeLinker(PlantBlockManager plantManager)
plantManager
- The PlantBlockManager that must link Entries with
PlantComponent properties.public java.util.List<EntryListener> linkComponents(PlantComponent plantComp, DataComponent dataComp)
linkComponents
in class GeometricalComponentLinker
plantComp
- The PlantComponent whose properties are contained in Entries.dataComp
- The DataComponent that contains the Entries.EntryListener
s created to link the Entries
and PlantComponents.