org.jcae.mesh.bora.ds
Class BDiscretization

java.lang.Object
  extended by org.jcae.mesh.bora.ds.BDiscretization

public class BDiscretization
extends java.lang.Object


Field Summary
protected static int nextId
           
 
Constructor Summary
BDiscretization(BCADGraphCell g, Constraint c)
           
 
Method Summary
 void addAllSubMeshes(BDiscretization parent)
           
 void addSubMesh(BSubMesh s)
           
 void combineConstraint(BDiscretization baseDiscr)
          When combining two constraints on the same BCADGraphCell (this happens during the phase when the set of needed BDiscretization are created), we want to ensure that those two constraints are not both "original" constraints set by the user on the same object of the CAD.
 boolean contained(BDiscretization that)
          Test of inclusion of the submesh list in the submesh list of that Check whether a BDiscretization has all of its submesh list contained in the parameter's submesh list
 boolean contains(BSubMesh s)
          Check whether a BSubMesh is already present.
 void discretize()
           
 boolean emptyIntersection(BDiscretization that)
          Check whether a BDiscretization instance contains at least a common BSubMesh.
 Constraint getConstraint()
           
 BSubMesh getFirstSubMesh()
           
 BCADGraphCell getGraphCell()
           
 int getId()
           
 java.lang.Object getMesh()
           
 java.util.Collection<BSubMesh> getSubmesh()
           
 boolean isSubmeshChild(BSubMesh that)
          Check whether a BDiscretization instance is needed for the definition of a BSubMesh.
 void setMesh(java.lang.Object m)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

nextId

protected static int nextId
Constructor Detail

BDiscretization

public BDiscretization(BCADGraphCell g,
                       Constraint c)
Method Detail

getId

public int getId()

getGraphCell

public BCADGraphCell getGraphCell()

getConstraint

public Constraint getConstraint()

getSubmesh

public java.util.Collection<BSubMesh> getSubmesh()

addSubMesh

public void addSubMesh(BSubMesh s)

getFirstSubMesh

public BSubMesh getFirstSubMesh()

combineConstraint

public void combineConstraint(BDiscretization baseDiscr)
When combining two constraints on the same BCADGraphCell (this happens during the phase when the set of needed BDiscretization are created), we want to ensure that those two constraints are not both "original" constraints set by the user on the same object of the CAD.


addAllSubMeshes

public void addAllSubMeshes(BDiscretization parent)

contains

public boolean contains(BSubMesh s)
Check whether a BSubMesh is already present.

Parameters:
s - BSubMesh being checked.
Returns:
true if BSubMesh is already found, false otherwise.

contained

public boolean contained(BDiscretization that)
Test of inclusion of the submesh list in the submesh list of that Check whether a BDiscretization has all of its submesh list contained in the parameter's submesh list

Parameters:
that - object being checked.

emptyIntersection

public boolean emptyIntersection(BDiscretization that)
Check whether a BDiscretization instance contains at least a common BSubMesh.

Parameters:
that - object being checked.
Returns:
false if a BSubMesh is common to both sets, true otherwise.

isSubmeshChild

public boolean isSubmeshChild(BSubMesh that)
Check whether a BDiscretization instance is needed for the definition of a BSubMesh.


getMesh

public java.lang.Object getMesh()

setMesh

public void setMesh(java.lang.Object m)

discretize

public void discretize()

toString

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