public class LWReactor extends LWRComposite
The LWReactor class represents any Light Water Nuclear Reactor.
iComponentVisitor
iComponentListener
Constructor and Description |
---|
LWReactor()
A default constructor that should ONLY be used for persistence and
testing.
|
LWReactor(int size)
A parameterized constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addComponent(Component component)
An operation that overrides the LWRComposite's operation.
|
java.lang.Object |
clone()
Deep copies and returns a newly instantiated object.
|
void |
copy(LWReactor otherObject)
Deep copies the contents of the object.
|
boolean |
equals(java.lang.Object otherObject)
Overrides the equals operation to check the attributes on this object
with another object of the same type.
|
int |
getSize()
Returns the size.
|
int |
hashCode()
Returns the hashCode of the object.
|
boolean |
readAttributes(ncsa.hdf.object.h5.H5Group h5Group)
This operation reads Attributes from h5Group and assigns their values to
class variables.
|
void |
removeComponent(int childId)
An operation that overrides the LWRComposite's operation.
|
void |
removeComponent(java.lang.String name)
An operation that overrides the LWRComposite's operation.
|
boolean |
writeAttributes(ncsa.hdf.object.h5.H5File h5File,
ncsa.hdf.object.h5.H5Group h5Group)
This operation writes HDF5 Attributes to the metadata of h5Group in the
h5File.
|
copy, getComponent, getComponent, getComponentNames, getComponents, getNumberOfComponents, getWriteableChildren, readChild
accept, accept, addData, copy, createGroup, getCurrentTime, getDataAtCurrentTime, getDescription, getFeatureList, getFeaturesAtCurrentTime, getHDF5LWRTag, getId, getName, getNumberOfTimeSteps, getSourceInfo, getTimes, getTimeStep, getTimeUnits, readDatasets, register, removeAllDataFromFeature, setDescription, setId, setName, setSourceInfo, setTime, setTimeUnits, toString, unregister, update, writeDatasets
register, unregister, update
getDescription, getId, getName, setDescription, setId, setName
public LWReactor()
public LWReactor(int size)
A parameterized constructor.
size
- The size of the reactor.
public void addComponent(Component component)
An operation that overrides the LWRComposite's operation. This operation does nothing and requires that the appropriate, more defined, associated operation to be utilized on this class.
addComponent
in interface Composite
addComponent
in class LWRComposite
component
- The Component to be added.
Composite.addComponent(Component child)
public void removeComponent(int childId)
An operation that overrides the LWRComposite's operation. This operation does nothing and requires that the appropriate, more defined, associated operation to be utilized on this class.
removeComponent
in interface Composite
removeComponent
in class LWRComposite
childId
- The id of the Component to remove.
Composite.removeComponent(int childId)
public void removeComponent(java.lang.String name)
An operation that overrides the LWRComposite's operation. This operation does nothing and requires that the appropriate, more defined, associated operation to be utilized on this class.
removeComponent
in class LWRComposite
name
- The name of the Component to remove.
public int getSize()
Returns the size.
public boolean writeAttributes(ncsa.hdf.object.h5.H5File h5File, ncsa.hdf.object.h5.H5Group h5Group)
IHdfWriteable
This operation writes HDF5 Attributes to the metadata of h5Group in the h5File. If the h5Group is null or h5File is null or can not be opened, then false is returned. If the operation fails to write all Attributes, then false is returned. Otherwise, true is returned.
writeAttributes
in interface IHdfWriteable
writeAttributes
in class LWRComponent
h5File
- h5Group
- public boolean equals(java.lang.Object otherObject)
Overrides the equals operation to check the attributes on this object with another object of the same type. Returns true if the objects are equal. False otherwise.
equals
in interface Identifiable
equals
in class LWRComposite
otherObject
- The object to be compared.
True if otherObject is equal. False otherwise.
public int hashCode()
Returns the hashCode of the object.
hashCode
in interface Identifiable
hashCode
in class LWRComposite
The hash of the object.
public void copy(LWReactor otherObject)
Deep copies the contents of the object.
otherObject
- The object to be copied.
public java.lang.Object clone()
Deep copies and returns a newly instantiated object.
clone
in interface Identifiable
clone
in class LWRComposite
The newly instantiated copied object.
public boolean readAttributes(ncsa.hdf.object.h5.H5Group h5Group)
IHdfReadable
This operation reads Attributes from h5Group and assigns their values to class variables. If h5Group is null, false is returned. If any Attribute values are null, false is returned. Otherwise, true is returned.
readAttributes
in interface IHdfReadable
readAttributes
in class LWRComponent
h5Group
-