public class PolygonProperties
extends java.lang.Object
A container for the material ID and group number of every polygon, as defined in the MESH DATA section of a Nek5000 reafile. Example:
ELEMENT 44 [ 1R] GROUP 0
For this Polygon, materialId = "1R", groupNum = 0.
Constructor and Description |
---|
PolygonProperties()
A nullary constructor that sets default values.
|
PolygonProperties(java.lang.String id,
int group)
The default, parameterized constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
This operation returns a clone of the PolygonProperties using a deep
copy.
|
void |
copy(PolygonProperties properties)
This operation copies the contents of a PolygonProperties into the
current object using a deep copy.
|
boolean |
equals(java.lang.Object otherObject)
This operation is used to check equality between this PolygonProperties
and another PolygonProperties.
|
int |
getGroupNum()
Returns the group number as an int.
|
java.lang.String |
getMaterialId()
Returns the material ID as a string.
|
int |
hashCode()
This operation returns the hash value of the PolygonProperties.
|
public PolygonProperties()
A nullary constructor that sets default values.
public PolygonProperties(java.lang.String id, int group)
The default, parameterized constructor.
id
- Material ID of the polygon. Must be between 1-4 chars long.
group
- Group number of the polygon. Must be no more than 5 digits.
public java.lang.String getMaterialId()
Returns the material ID as a string.
The material ID of the polygon.
public int getGroupNum()
Returns the group number as an int.
The group number of the polygon.
public boolean equals(java.lang.Object otherObject)
This operation is used to check equality between this PolygonProperties and another PolygonProperties. It returns true if they are equal and false if they are not.
equals
in class java.lang.Object
otherObject
- The other Object that should be compared with this one.
True if the Objects are equal, false otherwise.
public int hashCode()
This operation returns the hash value of the PolygonProperties.
hashCode
in class java.lang.Object
The hash of the Object.
public java.lang.Object clone()
This operation returns a clone of the PolygonProperties using a deep copy.
clone
in class java.lang.Object
The new clone.
public void copy(PolygonProperties properties)
This operation copies the contents of a PolygonProperties into the current object using a deep copy.
properties
- The Object from which the values should be copied.