public class PlantComponent extends ICEObject implements IReactorComponent
Base class for RELAP7 components.
iComponentVisitor
iComponentListener
Constructor and Description |
---|
PlantComponent()
Nullary constructor.
|
PlantComponent(java.lang.String name)
Parameterized constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(IComponentVisitor visitor)
Accepts IComponentVisitor visitors to reveal the type of a
PlantComponent.
|
void |
accept(IPlantComponentVisitor visitor)
Sub-classes will need to override this method so that the visit operation
will work correctly.
|
java.lang.Object |
clone()
Performs a deep copy and returns a newly instantiated Object.
|
void |
copy(PlantComponent otherObject)
Deep copies the contents of otherObject.
|
boolean |
equals(java.lang.Object otherObject)
Performs an equality check between two Objects.
|
int |
hashCode()
Returns the hashCode of the object.
|
java.lang.String |
toString()
Gets a String representation of the
PlantComponent.
|
copy, getDescription, getId, getName, register, setDescription, setId, setName, unregister, update
register, unregister, update
getDescription, getId, getName, setDescription, setId, setName
public PlantComponent()
Nullary constructor.
public PlantComponent(java.lang.String name)
Parameterized constructor.
name
- Name of the RELAP7 component.
public void accept(IComponentVisitor visitor)
Accepts IComponentVisitor visitors to reveal the type of a PlantComponent.
public void accept(IPlantComponentVisitor visitor)
visitor
- The IPlantComponentVisitor that is visiting this
PlantComponent.public boolean equals(java.lang.Object otherObject)
Performs an equality check between two Objects.
equals
in interface Identifiable
equals
in class ICEObject
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 ICEObject
The newly instantiated Object.
public void copy(PlantComponent 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 ICEObject
The hashCode of the Object.
Identifiable.hashCode()
public java.lang.String toString()
toString
in interface IReactorComponent
toString
in class java.lang.Object
The name of the PlantComponent as a String.
IReactorComponent#toString()