org.jcae.mesh.amibe.ds
Class MNode1D

java.lang.Object
  extended by org.jcae.mesh.amibe.ds.MNode1D

public class MNode1D
extends java.lang.Object

1D node. Nodes are located via their curvilinear abscissa on the working edge. The edge on which MNode1D are lying is not stored here because there is currently no need for such a link, all methods using MNode1D instances are looping on all topological edges, and thus current edge is known within those loops.


Constructor Summary
MNode1D(double t, BDiscretization d)
          Creates a MNode1D instance.
MNode1D(double t, CADVertex v)
          Creates a MNode1D instance.
 
Method Summary
 CADVertex getCADVertex()
          Returns the topological vertex sharing the same location.
 int getID()
          Returns the public identifer.
 int getLabel()
          Returns the node label.
 MNode1D getMaster()
          Returns the master MNode1D instance.
 double getParameter()
          Returns the curvilinear abscissa.
 boolean isDegenerated()
          Tells if this node lies on a degenerated edge.
 boolean isDegenerated(boolean d)
          Changes the node status about degenerated edges.
 boolean isMutable()
          Tells if this node can be altered.
 void setLabel(int l)
          Sets node label.
 MNode1D setMaster(MNode1D ref)
          Binds to a master MNode1D instance.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MNode1D

public MNode1D(double t,
               CADVertex v)
Creates a MNode1D instance.

Parameters:
t - curvilinear abscissa on current edge
v - if not null, the topological vertex which shares the same location

MNode1D

public MNode1D(double t,
               BDiscretization d)
Creates a MNode1D instance.

Parameters:
t - curvilinear abscissa on current edge
d - if not null, the vertex discretization used
Method Detail

getID

public int getID()
Returns the public identifer.

Returns:
the public identifer.

setLabel

public void setLabel(int l)
Sets node label.

Parameters:
l - node label

getLabel

public int getLabel()
Returns the node label.

Returns:
the node label.

getParameter

public double getParameter()
Returns the curvilinear abscissa.

Returns:
the curvilinear abscissa.

getCADVertex

public CADVertex getCADVertex()
Returns the topological vertex sharing the same location.

Returns:
the topological vertex sharing the same location.

getMaster

public MNode1D getMaster()
Returns the master MNode1D instance. Return value is a valid object, it cannot be null.

Returns:
the master MNode1D instance.

setMaster

public MNode1D setMaster(MNode1D ref)
Binds to a master MNode1D instance.

Parameters:
ref - the master MNode1D instance.

isMutable

public boolean isMutable()
Tells if this node can be altered.

Returns:
true if this node can be altered, and false otherwise.

isDegenerated

public boolean isDegenerated()
Tells if this node lies on a degenerated edge.

Returns:
true if this node lies on a degenerated edge, false otherwise.

isDegenerated

public boolean isDegenerated(boolean d)
Changes the node status about degenerated edges.

Parameters:
d - set status about degenerated edges to the boolean value d.
Returns:
its d argument.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object