public class Reactor extends PlantComponent
Describes reactor parameters.
iComponentVisitor
iComponentListener
Constructor and Description |
---|
Reactor()
Nullary constructor.
|
Reactor(java.util.ArrayList<CoreChannel> channels)
The core channel(s) contained in the reactor.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(IPlantComponentVisitor visitor)
Accepts PlantComponentVisitors to reveal the type of a PlantComponent.
|
java.lang.Object |
clone()
Performs a deep copy and returns a newly instantiated Object.
|
void |
copy(Reactor otherObject)
Deep copies the contents of otherObject.
|
boolean |
equals(java.lang.Object otherObject)
Performs an equality check between two Objects.
|
java.util.ArrayList<CoreChannel> |
getCoreChannels() |
int |
hashCode()
Returns the hashCode of the object.
|
void |
setCoreChannels(java.util.ArrayList<CoreChannel> coreChannels) |
accept, copy, toString
copy, getDescription, getId, getName, register, setDescription, setId, setName, unregister, update
register, unregister, update
getDescription, getId, getName, setDescription, setId, setName
public Reactor()
public Reactor(java.util.ArrayList<CoreChannel> channels)
channels
- public java.util.ArrayList<CoreChannel> getCoreChannels()
public void setCoreChannels(java.util.ArrayList<CoreChannel> coreChannels)
coreChannels
- the coreChannels to setpublic boolean equals(java.lang.Object otherObject)
Performs an equality check between two Objects.
equals
in interface Identifiable
equals
in class PlantComponent
otherObject
- The other Object to compare against.
Returns true if the two objects are equal, otherwise false.
Identifiable.equals(Object otherObject)
public java.lang.Object clone()
Performs a deep copy and returns a newly instantiated Object.
clone
in interface Identifiable
clone
in class PlantComponent
The newly instantiated Object.
public void copy(Reactor otherObject)
Deep copies the contents of otherObject.
otherObject
- The other object to copy the contents from.
public int hashCode()
Returns the hashCode of the object.
hashCode
in interface Identifiable
hashCode
in class PlantComponent
The hashCode of the Object.
Identifiable.hashCode()
public void accept(IPlantComponentVisitor visitor)
Accepts PlantComponentVisitors to reveal the type of a PlantComponent.
accept
in class PlantComponent
visitor
- The PlantComponent's visitor.