This class represents the succedent or antecendent part of a
sequent. It is more or less a list without duplicates and subsumed
formulas. This is ensured using method removeRedundancy. In future
versions it can be enhanced to do other simplifications. A sequent
and so a semisequent has to be immutable.
contains(ConstrainedFormula conForm) checks if a ConstrainedFormula is in this Semisequent
(identity check)
Parameters: conForm - the ConstraintForumla to look for true iff.
public boolean
containsEqual(ConstrainedFormula conForm) checks if a ConstrainedFormula is in this Semisequent
(equality check)
Parameters: conForm - the ConstraintForumla to look for true iff.
checks if a ConstrainedFormula is in this Semisequent
(identity check)
Parameters: conForm - the ConstraintForumla to look for true iff. conForm has been found in thisSemisequent
checks if a ConstrainedFormula is in this Semisequent
(equality check)
Parameters: conForm - the ConstraintForumla to look for true iff. conForm has been found in thisSemisequent
gets the element at a specific index
Parameters: idx - int representing the index of the element wewant to have ConstrainedFormula found at index idx throws: IndexOutOfBoundsException - if idx is negative or greater or equal to Sequent.size
returns index of a ConstrainedFormula. An identity check ('==')
is used when searching for the ConstrainedFormula, NOT equals on
ConstrainedFormula, because a ConstrainedFormulae identifies the origin
of a formula.
Parameters: conForm - the ConstrainedFormula the index want to bedetermined index of conForm (-1 if not found)
inserts an element at a specified index performing redundancy
checks, this may result in returning same semisequent if
inserting would create redundancies
Parameters: idx - int encoding the place the element has to be put Parameters: conForm - ConstrainedFormula to be inserted a semi sequent change information object with the new semisequentand information which formulas have been added or removed
inserts the elements of the list at the specified index
performing redundancy checks
Parameters: idx - int encoding the place where the insertion starts Parameters: insertionList - ListOfConstrainedFormula to be insertedstarting at idx a semi sequent change information object with the new semisequentand information which formulas have been added or removed
inserts element at index 0 performing redundancy
checks, this may result in returning same semisequent if
inserting would create redundancies
Parameters: conForm - ConstrainedFormula to be inserted a semi sequent change information object with the new semisequentand information which formulas have been added or removed
inserts element at index 0 performing redundancy
checks, this may result in returning same semisequent if
inserting would create redundancies
Parameters: insertions - ListOfConstrainedFormula to be inserted a semi sequent change information object with the new semisequentand information which formulas have been added or removed
inserts element at the end of the semisequent performing
redundancy checks, this may result in returning same
semisequent if inserting would create redundancies
Parameters: conForm - ConstrainedFormula to be inserted a semi sequent change information object with the new semisequentand information which formulas have been added or removed
inserts the formulas of the list at the end of the semisequent
performing redundancy checks, this may result in returning same
semisequent if inserting would create redundancies
Parameters: insertions - the ListOfConstrainedFormula to be inserted a semi sequent change information object with the new semisequentand information which formulas have been added or removed
removes an element
Parameters: idx - int being the index of the element that has tobe removed a semi sequent change information object with the new semisequentand information which formulas have been added or removed
replaces the element at place idx with conForm
Parameters: pos - the PosInOccurrence describing the position of and within theformula below which the formula differs from the new formulaconForm Parameters: conForm - the ConstrainedFormula replacing the old element at index idx a semi sequent change information object with the new semisequentand information which formulas have been added or removed
replaces the idx-th formula by conForm Parameters: idx - the int with the position of the formula to be replaced Parameters: conForm - the ConstrainedFormula replacing the formula at the given position a SemisequentChangeInfo containing the new sequent and a diff to the oldone
replaces the element at place idx with the first element of the
given list and adds the rest of the list to the semisequent
behind the replaced formula
Parameters: pos - the formula to be replaced Parameters: replacements - the ListOfConstrainedFormula whose headreplaces the element at index idx and the tail is added to thesemisequent a semi sequent change information object with the new semisequentand information which formulas have been added or removed