public class SFRAssembly extends SFRComposite
Class representing the assembly structure of a SFR. The SFR assembly is housed in a hexagonal structure called the wrapper tube (or duct), and contains a lattice of either pins or rods.
iComponentVisitor
iComponentListener
Constructor and Description |
---|
SFRAssembly(int size)
Parameterized constructor with assemble size specified.
|
SFRAssembly(java.lang.String name,
AssemblyType type,
int size)
Parameterized constructor with assembly name, type and size specified.
|
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(SFRAssembly otherObject)
Deep copies the contents of the object from another 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.
|
AssemblyType |
getAssemblyType()
Returns the assembly type (fuel, control or reflector).
|
double |
getDuctThickness()
Returns the duct wall thickness of an assembly as a double.
|
int |
getSize()
Returns the assembly size.
|
int |
hashCode()
Returns the hashCode of the object.
|
void |
setDuctThickness(double thickness)
Sets the thickness of the assembly duct wall.
|
addComponent, copy, getComponent, getComponent, getComponentNames, getComponents, getNumberOfComponents, removeComponent, removeComponent
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
register, unregister, update
getDescription, getId, getName, setDescription, setId, setName
public SFRAssembly(int size)
Parameterized constructor with assemble size specified. Size represents number of pins in a fuel or control assembly, and rods in a reflector assembly.
size
- Size of the assembly.public SFRAssembly(java.lang.String name, AssemblyType type, int size)
Parameterized constructor with assembly name, type and size specified. Size represents number of pins in a fuel or control assembly, and rods in a reflector assembly.
name
- The name of the assembly.type
- The assembly type (fuel, control or reflector).size
- The size of the assembly.public int getSize()
Returns the assembly size. Size represents number of pins in a fuel or control assembly, and rods in a reflector assembly.
public AssemblyType getAssemblyType()
Returns the assembly type (fuel, control or reflector).
public void setDuctThickness(double thickness)
Sets the thickness of the assembly duct wall.
thickness
- The duct thickness. Must be non-negative.public double getDuctThickness()
Returns the duct wall thickness of an assembly as a double.
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 SFRComposite
otherObject
- The object to be compared.Identifiable.equals(Object otherObject)
public int hashCode()
Returns the hashCode of the object.
hashCode
in interface Identifiable
hashCode
in class SFRComposite
The hash of the object.
Identifiable.hashCode()
public void copy(SFRAssembly otherObject)
Deep copies the contents of the object from another object.
otherObject
- The object to be copied from.
public java.lang.Object clone()
Deep copies and returns a newly instantiated object.
clone
in interface Identifiable
clone
in class SFRComposite
The newly instantiated copied object.
public void accept(ISFRComponentVisitor visitor)
accept
in class SFRComponent
visitor
- An ISFRComponentVisitor that is visiting this SFRComponent.