public class PolynomialEdge extends Edge
An Edge comprising a polynomial curve that connects its two Vertices.
component
iComponentListener
Constructor and Description |
---|
PolynomialEdge()
A nullary constructor.
|
PolynomialEdge(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 PolynomialEdge using a deep copy.
|
void |
copy(PolynomialEdge edge)
This operation copies the contents of a PolynomialEdge into the current
object using a deep copy.
|
boolean |
equals(java.lang.Object otherObject)
This operation is used to check equality between this PolynomialEdge and
another PolynomialEdge.
|
int |
hashCode()
This operation returns the hash value of the PolynomialEdge.
|
copy, getEndLocation, getLength, getStartLocation, getVertexIds, unregister, update
copy, getDescription, getId, getName, register, setDescription, setId, setName, update
public PolynomialEdge()
A nullary constructor. This creates an Edge with no vertices and initializes any fields necessary for the minimal function of an Edge. Required for persistence.
public PolynomialEdge(java.util.ArrayList<Vertex> vertices)
The default constructor.
vertices
- The two Vertices this Edge connects.
public int hashCode()
This operation returns the hash value of the PolynomialEdge.
hashCode
in interface Identifiable
hashCode
in class Edge
The hash of the Object.
Identifiable.hashCode()
public boolean equals(java.lang.Object otherObject)
This operation is used to check equality between this PolynomialEdge and another PolynomialEdge. It returns true if the PolynomialEdges are equal and false if they are not.
equals
in interface Identifiable
equals
in class Edge
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(PolynomialEdge edge)
This operation copies the contents of a PolynomialEdge into the current object using a deep copy.
edge
- The Object from which the values should be copied.
public java.lang.Object clone()
This operation returns a clone of the PolynomialEdge using a deep copy.
clone
in interface Identifiable
clone
in class Edge
The new clone.
public void acceptMeshVisitor(IMeshPartVisitor visitor)
This method calls the IMeshPartVisitor
's visit method.
acceptMeshVisitor
in interface IMeshPart
acceptMeshVisitor
in class Edge
visitor
-
The IMeshPartVisitor
that is visiting this
IMeshPart
.