Package gprover
Class LList
- java.lang.Object
-
- gprover.CClass
-
- gprover.LList
-
public class LList extends CClass
Represents a list of geometric elements. This class extends the CClass and includes properties for different types of elements, rules, and methods to manipulate them.
-
-
Field Summary
Fields Modifier and Type Field Description static intANGLEConstant value representing an angle type.LListfrReference to the first LList object.static intLINEConstant value representing a line type.static intMAX_MDEMaximum number of elements.Mnde[]mdArray of Mnde objects representing the elements.Mnde[]mfArray of Mnde objects representing the elements.intndNumber of elements in md.intnfNumber of elements in mf.Rule[]rlArray of Rule objects representing the rules.static intVALUEConstant value representing a value type.
-
Constructor Summary
Constructors Constructor Description LList()Constructs an LList object with default values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd_md(Mnde m)Adds an Mnde object to the md array.voidadd_mf(Mnde m)Adds an Mnde object to the mf array.voidadd_rule(Rule r)Adds a Rule object to the rl array.voidcp(LList ls)Copies the properties of another LList object to this one.intget_npt()Gets the number of points and updates the npt and pt fields.java.lang.StringtoString()Returns a string representation of the LList object.
-
-
-
Field Detail
-
VALUE
public static final int VALUE
Constant value representing a value type.- See Also:
- Constant Field Values
-
LINE
public static final int LINE
Constant value representing a line type.- See Also:
- Constant Field Values
-
ANGLE
public static final int ANGLE
Constant value representing an angle type.- See Also:
- Constant Field Values
-
MAX_MDE
public static final int MAX_MDE
Maximum number of elements.- See Also:
- Constant Field Values
-
md
public Mnde[] md
Array of Mnde objects representing the elements.
-
mf
public Mnde[] mf
Array of Mnde objects representing the elements.
-
nd
public int nd
Number of elements in md.
-
nf
public int nf
Number of elements in mf.
-
rl
public Rule[] rl
Array of Rule objects representing the rules.
-
fr
public LList fr
Reference to the first LList object.
-
-
Method Detail
-
get_npt
public int get_npt()
Gets the number of points and updates the npt and pt fields.- Returns:
- the number of points
-
cp
public void cp(LList ls)
Copies the properties of another LList object to this one.- Parameters:
ls- the LList object to copy from
-
add_md
public void add_md(Mnde m)
Adds an Mnde object to the md array.- Parameters:
m- the Mnde object to add
-
add_mf
public void add_mf(Mnde m)
Adds an Mnde object to the mf array.- Parameters:
m- the Mnde object to add
-
add_rule
public void add_rule(Rule r)
Adds a Rule object to the rl array.- Parameters:
r- the Rule object to add
-
-