public class HeatExchanger extends GeometricalComponent
This is the primary design of a countercurrent exchanger. It has two loops, a primary and secondary loop, and therefore four in/outlets.
It also contains a solid wall part which is between these two loops, acting as a heat transfer medium.
iComponentVisitor
iComponentListener
Constructor and Description |
---|
HeatExchanger()
Nullary constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(IPlantComponentVisitor visitor)
Accepts PlantComponentVisitors to reveal the type of a PlantComponent.
|
java.lang.Object |
clone()
Performs a deep copy and returns a newly instantiated Object.
|
void |
copy(HeatExchanger otherObject)
Deep copies the contents of otherObject.
|
boolean |
equals(java.lang.Object otherObject)
Performs an equality check between two Objects.
|
java.util.ArrayList<PlantComponent> |
getComponents()
Returns a list of the components (primary pipe, secondary pipe -- in that
order) contained in the heat exchanger.
|
double |
getInnerRadius() |
double |
getLength() |
Pipe |
getPrimaryPipe() |
Pipe |
getSecondaryPipe() |
int |
hashCode()
Returns the hashCode of the object.
|
void |
setId(int id)
Overrides the default behavior so that the primary and secondary Pipes
get the same ID as the HeatExchanger.
|
void |
setInnerRadius(double innerRadius) |
void |
setLength(double length) |
void |
setNumElements(int numElements)
Apply the geometric properties to the wrapped Pipes.
|
void |
setOrientation(double[] orientation)
Apply the geometric properties to the wrapped Pipes.
|
void |
setPosition(double[] position)
Apply the geometric properties to the wrapped Pipes.
|
void |
setRotation(double rotation)
Apply the geometric properties to the wrapped Pipes.
|
copy, getNumElements, getOrientation, getPosition, getRotation
accept, copy, toString
copy, getDescription, getId, getName, register, setDescription, setName, unregister, update
register, unregister, update
getDescription, getId, getName, setDescription, setName
public double getInnerRadius()
public void setInnerRadius(double innerRadius)
innerRadius
- the innerRadius to setpublic double getLength()
public void setLength(double length)
length
- the length to setpublic Pipe getPrimaryPipe()
public Pipe getSecondaryPipe()
public java.util.ArrayList<PlantComponent> getComponents()
Returns a list of the components (primary pipe, secondary pipe -- in that order) contained in the heat exchanger.
A list of the components contained, in the order: primary pipe, secondary pipe, wall.
public boolean equals(java.lang.Object otherObject)
Performs an equality check between two Objects.
equals
in interface Identifiable
equals
in class GeometricalComponent
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 GeometricalComponent
The newly instantiated Object.
public void copy(HeatExchanger 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 GeometricalComponent
The hashCode of the Object.
Identifiable.hashCode()
public void accept(IPlantComponentVisitor visitor)
Accepts PlantComponentVisitors to reveal the type of a PlantComponent.
accept
in class GeometricalComponent
visitor
- The PlantComponent's visitor.
public void setPosition(double[] position)
setPosition
in class GeometricalComponent
position
- the position to setpublic void setOrientation(double[] orientation)
setOrientation
in class GeometricalComponent
orientation
- the orientation to setpublic void setRotation(double rotation)
setRotation
in class GeometricalComponent
rotation
- the rotation to setpublic void setNumElements(int numElements)
setNumElements
in class GeometricalComponent
numElements
- the numElements to setpublic void setId(int id)
setId
in interface Identifiable
setId
in class ICEObject
id
- The unique identification number that should be assigned to the Identifiable entity.
Identifiable.setId(int id)