public class Material extends LWRComponent
The Material class is a representation of any material property of any class within an LWReactor. The setName for this class should represent the material name. The Material Class can also indicate what type of material is defined (solid, liquid, gas).
iComponentVisitor
iComponentListener
Constructor and Description |
---|
Material()
The nullary Constructor.
|
Material(java.lang.String name)
A parameterized Constructor.
|
Material(java.lang.String name,
MaterialType materialType)
A parameterized Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Deep copies and returns a newly instantiated object.
|
void |
copy(Material 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.
|
MaterialType |
getMaterialType()
Returns the phase of this Material.
|
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 |
setMaterialType(MaterialType materialType)
Sets the phase of this Material.
|
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.
|
accept, accept, addData, copy, createGroup, getCurrentTime, getDataAtCurrentTime, getDescription, getFeatureList, getFeaturesAtCurrentTime, getHDF5LWRTag, getId, getName, getNumberOfTimeSteps, getSourceInfo, getTimes, getTimeStep, getTimeUnits, getWriteableChildren, readChild, readDatasets, register, removeAllDataFromFeature, setDescription, setId, setName, setSourceInfo, setTime, setTimeUnits, toString, unregister, update, writeDatasets
public Material()
The nullary Constructor.
public Material(java.lang.String name)
A parameterized Constructor.
name
- The name of this Material.
public Material(java.lang.String name, MaterialType materialType)
A parameterized Constructor.
name
- The name of this Material.
materialType
- The phase of this Material. Must be one of the enumeration values listed in MaterialType.
public void setMaterialType(MaterialType materialType)
Sets the phase of this Material. Must be one of the enumeration values listed in MaterialType.
materialType
- The phase of this Material. Must be one of the enumeration values listed in MaterialType.
public MaterialType getMaterialType()
Returns the phase of this Material. Must be one of the enumeration values listed in MaterialType.
The phase of this Material. Must be one of the enumeration values listed in MaterialType.
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 LWRComponent
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 LWRComponent
The hash of the object.
public void copy(Material 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 LWRComponent
The newly instantiated copied object.
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 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
-