public class Material extends SFRComponent
Class representing the properties of any material that may be present throughout the reactor. Can include solid, liquid and gaseous states.
iComponentVisitor
iComponentListener
Constructor and Description |
---|
Material()
Nullary constructor.
|
Material(java.lang.String name)
Parameterized constructor specifying the material's name.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(ISFRComponentVisitor visitor)
Overrides the default behavior (ignore) from SFRComponent and implements
the accept operation for this SFRComponent's type.
|
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)
Compares the contents of objects and returns true if they are identical,
otherwise returns false.
|
int |
hashCode()
Returns the hashcode of the object.
|
accept, addData, copy, getCurrentTime, getDataAtCurrentTime, getDescription, getFeatureList, getFeaturesAtCurrentTime, getId, getName, getNumberOfTimeSteps, getSourceInfo, getTimes, getTimeStep, getTimeUnits, notifyListeners, register, removeDataFromFeature, setDescription, setId, setName, setSourceInfo, setTime, setTimeUnits, toString, unregister, update
public Material()
Nullary constructor.
public Material(java.lang.String name)
Parameterized constructor specifying the material's name.
name
- Name of the material.public boolean equals(java.lang.Object otherObject)
Compares the contents of objects and returns true if they are identical, otherwise returns false.
equals
in interface Identifiable
equals
in class SFRComponent
otherObject
- The other object to compare against.Identifiable.equals(Object otherObject)
public int hashCode()
Returns the hashcode of the object.
hashCode
in interface Identifiable
hashCode
in class SFRComponent
Identifiable.hashCode()
public void copy(Material otherObject)
Deep copies the contents of the object.
otherObject
- The other object to copy the contents of.public java.lang.Object clone()
Deep copies and returns a newly instantiated object.
clone
in interface Identifiable
clone
in class SFRComponent
public void accept(ISFRComponentVisitor visitor)
accept
in class SFRComponent
visitor
- An ISFRComponentVisitor that is visiting this SFRComponent.