org.jcae.mesh.bora.ds
Class Hypothesis

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

public class Hypothesis
extends java.lang.Object


Nested Class Summary
static class Hypothesis.HypE2
           
static interface Hypothesis.HypInterface
           
static class Hypothesis.HypNone
           
static class Hypothesis.HypQ4
           
static class Hypothesis.HypT3
           
static class Hypothesis.HypT4
           
static class Hypothesis.HypV1
           
 
Field Summary
protected  double deflection
           
protected  Hypothesis.HypInterface hyp
           
protected  double length
           
protected  boolean lengthBool
           
protected  double lengthMax
           
protected  double lengthMin
           
protected  boolean numberBool
           
protected  int numberMax
           
protected  int numberMin
           
 
Constructor Summary
Hypothesis()
           
Hypothesis(int i)
           
 
Method Summary
 boolean checkCompatibility(CADShapeEnum cse)
          Checks compatibility with geometrical objects.
 boolean combine(Hypothesis that)
          Combines with another hypothesis.
 Hypothesis createInheritedHypothesis(CADShapeEnum cse)
           
 AlgoInterface findAlgorithm(CADShapeEnum cse)
           
 double getDeflection()
           
 java.lang.String getElement()
          Gets element type.
 int getId()
           
 double getLength()
           
 void lock()
          Locks the hypothesis so that it cannot be modified.
 void setDeflection(double d)
          Sets deflection.
 void setElement(java.lang.String e)
          Sets element type.
 void setLength(double l)
          Sets target length.
 void setLength(double l, boolean b)
          Sets target length.
 void setLength(double l1, double l2)
          Sets length interval.
 void setLength(double l1, double l2, boolean b)
          Sets length interval.
 void setNumber(int n)
          Sets number of segments.
 void setNumber(int n, boolean b)
          Sets number of segments.
 void setNumber(int n1, int n2)
          Sets number of segments.
 void setNumber(int n1, int n2, boolean b)
          Sets number of segments.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

hyp

protected Hypothesis.HypInterface hyp

length

protected double length

lengthMin

protected double lengthMin

lengthMax

protected double lengthMax

deflection

protected double deflection

lengthBool

protected boolean lengthBool

numberBool

protected boolean numberBool

numberMin

protected int numberMin

numberMax

protected int numberMax
Constructor Detail

Hypothesis

public Hypothesis()

Hypothesis

public Hypothesis(int i)
Method Detail

getId

public int getId()

setElement

public void setElement(java.lang.String e)
Sets element type.

Parameters:
e - element type

getElement

public java.lang.String getElement()
Gets element type.

Returns:
element type

checkCompatibility

public boolean checkCompatibility(CADShapeEnum cse)
Checks compatibility with geometrical objects.

Parameters:
cse - geometrical object type
Returns:
true if this hypothesis can be appplied on geometrical objects of a given type, and false otherwise.

setLength

public void setLength(double l)
Sets target length.

Parameters:
l - length

setLength

public void setLength(double l,
                      boolean b)
Sets target length.

Parameters:
l - length
b - hard constraint

getLength

public double getLength()

getDeflection

public double getDeflection()

setLength

public void setLength(double l1,
                      double l2)
Sets length interval.

Parameters:
l1 - length min
l2 - length max

setLength

public void setLength(double l1,
                      double l2,
                      boolean b)
Sets length interval.

Parameters:
l1 - length min
l2 - length max
b - hard constraint

setDeflection

public void setDeflection(double d)
Sets deflection.

Parameters:
d - deflection

setNumber

public void setNumber(int n)
Sets number of segments.

Parameters:
n - number of segments.

setNumber

public void setNumber(int n,
                      boolean b)
Sets number of segments.

Parameters:
n - number of segments.
b - hard constraint

setNumber

public void setNumber(int n1,
                      int n2)
Sets number of segments.

Parameters:
n1 - minimal number of segments
n2 - maximal number of segments

setNumber

public void setNumber(int n1,
                      int n2,
                      boolean b)
Sets number of segments.

Parameters:
n1 - minimal number of segments
n2 - maximal number of segments
b - hard constraint

lock

public void lock()
Locks the hypothesis so that it cannot be modified.


combine

public boolean combine(Hypothesis that)
Combines with another hypothesis.

Returns:
true if hypothesis have been successfully combined, false otherwise.

toString

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

createInheritedHypothesis

public Hypothesis createInheritedHypothesis(CADShapeEnum cse)

findAlgorithm

public AlgoInterface findAlgorithm(CADShapeEnum cse)