public class Hex extends Polygon
This is a 6-sided polygon with 6 edges and 6 vertices.
component
iComponentVisitor
iComponentListener
Constructor and Description |
---|
Hex()
A nullary constructor.
|
Hex(java.util.ArrayList<Edge> edges,
java.util.ArrayList<Vertex> vertices)
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
acceptMeshVisitor(IMeshPartVisitor visitor)
This method calls the
IMeshPartVisitor 's visit method. |
java.lang.Object |
clone()
This operation returns a clone of the Hex using a deep copy.
|
void |
copy(Hex polygon)
This operation copies the contents of a Hex into the current object using
a deep copy.
|
boolean |
equals(java.lang.Object otherObject)
This operation is used to check equality between this Hex and another
Hex.
|
int |
hashCode()
This operation returns the hash value of the Hex.
|
acceptShapeVisitor, copy, getEdges, getFluidBoundaryCondition, getOtherBoundaryCondition, getPolygonProperties, getThermalBoundaryCondition, getVertices, setFluidBoundaryCondition, setOtherBoundaryCondition, setPolygonProperties, setThermalBoundaryCondition, update
accept, copy, getParent, getProperty, getTransformation, removeProperty, setProperty, setTransformation
copy, getDescription, getId, getName, register, setDescription, setId, setName, unregister, update
getClass, notify, notifyAll, toString, wait, wait, wait
register, unregister, update
getDescription, getId, getName, setDescription, setId, setName
public Hex()
A nullary constructor. This creates a Polygon with no vertices or edges and initializes any fields necessary. Required for persistence.
public int hashCode()
This operation returns the hash value of the Hex.
hashCode
in interface Identifiable
hashCode
in class Polygon
The hash of the Object.
Identifiable.hashCode()
public boolean equals(java.lang.Object otherObject)
This operation is used to check equality between this Hex and another Hex. It returns true if the Hexes are equal and false if they are not.
equals
in interface Identifiable
equals
in class Polygon
otherObject
- The other Object that should be compared with this one.
True if the Objects are equal, false otherwise.
Identifiable.equals(Object otherObject)
public void copy(Hex polygon)
This operation copies the contents of a Hex into the current object using a deep copy.
polygon
- The Object from which the values should be copied.
public java.lang.Object clone()
This operation returns a clone of the Hex using a deep copy.
clone
in interface Identifiable
clone
in class Polygon
The new clone.
public void acceptMeshVisitor(IMeshPartVisitor visitor)
This method calls the IMeshPartVisitor
's visit method.
acceptMeshVisitor
in interface IMeshPart
acceptMeshVisitor
in class Polygon
visitor
-
The IMeshPartVisitor
that is visiting this
IMeshPart
.