|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectRaptor.ProofItem
Raptor.ProofBox
public class ProofBox
Implements a box in a proof.
Extends ProofItem, so a proof is made up of a list of ProofItems.
Contains a linked list of ProofItems, which make up the lines of the proof in
the box.
Field Summary | |
---|---|
int |
skolem
|
Constructor Summary | |
---|---|
ProofBox(ProofLine pGoal,
ProofWindow pParentWindow,
ProofBox pParentBox)
Constructs a ProofBox (with Goal). |
|
ProofBox(ProofWindow pParentWindow)
Constructs a ProofBox (Outer). |
|
ProofBox(ProofWindow pParentWindow,
ProofBox pParentBox)
Constructs a ProofBox. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent pEvent)
Handles actions performed within the ProofWindow |
void |
addItem(int pIndex,
ProofItem pItem)
Adds ProofItem to specified position in LinkedList of ProofItems. |
void |
addItem(ProofItem pItem)
Adds ProofItem to the LinkedList of ProofItems in the ProofBox. |
void |
addSkolems(ProofBox pParBox,
PanSignature pTemp)
|
void |
addToSignature(java.util.List<Atom> pNewAtoms)
Adds the given list of Atoms to the signature of the ProofBox. |
void |
cleanup()
Removes the empty line before a goal line when that goal has become proved but there are still goals remaining in the proof. |
void |
deselectAll()
Used to deselect the items once a rule has been executed or the rule failed to execute. |
javax.swing.JPanel |
display()
Returns the ProofBox within a JPanel. |
boolean |
getDisplayBorder()
Returns true is the box is displayed. |
boolean |
getDisplayItems()
Returns true if box's ProofItems are not hidden, otherwise false. |
int |
getIndex(ProofItem pCurrent)
Returns the index of a given ProofItem |
int |
getInvCount()
Returns the invCount (invariant count) |
PanSignature |
getMainSignature()
|
ProofBox |
getNextBox()
Returns the next ProofBox in the list. |
ProofBox |
getOlderSiblingBox()
Returns the ProofBox that references this ProofBox as its nextBox. |
ProofItem |
getProofItem(int i)
Returns the ith in the ProofItems list |
java.util.List<ProofItem> |
getProofItems()
Returns the list of ProofItems contained in the box. |
PanSignature |
getSignature()
Returns the signature of the ProofBox. |
int |
getUnknownCount()
Returns the unknownCount |
boolean |
hasNextBox()
A ProofBox item in a proof may be a list of ProofBoxes. |
void |
incrementInvCount()
Increments the invCount |
void |
incrementUnknownCount()
Increments the unknownCount |
boolean |
isProved()
Returns true if the box has been proved |
boolean |
isVertical()
Returns true if orientation of ProofBox is vertical. |
void |
mouseClicked(java.awt.event.MouseEvent e)
Responds to a ProofBox with a mouse listener being clicked. |
ProofItem |
next(ProofItem pCurrent)
Returns the next ProofItem in the ProofItems list |
int[] |
recalculateLineNum(int pFirstProofLine,
int pFirstProgLine)
Recalculates the line numbers within the ProofBox. |
void |
regenerate(ProofBox pOutsideBox,
ProofWindow pParentWindow)
Copies (this) ProofBox to the given outsideBox. |
void |
removeItem(int pIndex)
Removes the specified item from the list of ProofItems |
void |
setBoxStarted(boolean pOption)
Sets if the box has been started or not |
void |
setDashedBox(boolean pOption)
Controls the appearance of the ProofBox. |
void |
setDisplayBorder(boolean pOption)
Used to set the display options of the ProofBox. |
void |
setDisplayItems(boolean pOption)
Controls if the content of the ProofBox should be displayed. |
void |
setInvCount(int pInvCount)
Sets the invCount to value pInvCount |
ProofBox |
setNextBox()
Creates a new ProofBox to follow the current ProofBox and returns this new sibling ProofBox. |
void |
setOlderSiblingBox(ProofBox pSibling)
Sets the olderSiblingBox of this ProofBox as the ProofBox that refernces this ProofBox as its nextBox. |
void |
setUnknownCount(int pUnknownCount)
Sets the unknownCount to value pUnknownCount |
void |
setVertical(boolean pOpt)
Controls if sibling boxes should be displayed vertically. |
Methods inherited from class Raptor.ProofItem |
---|
deselectLine, deselectLineNoClear, displayColour, getParentBox, getParentWindow, mouseEntered, mouseExited, mousePressed, mouseReleased, setParentBox |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.awt.event.MouseListener |
---|
mouseEntered, mouseExited, mousePressed, mouseReleased |
Field Detail |
---|
public int skolem
Constructor Detail |
---|
public ProofBox(ProofWindow pParentWindow)
pParentWindow
- The ProofWindow that the box is inside.public ProofBox(ProofWindow pParentWindow, ProofBox pParentBox)
pParentWindow
- The ProofWindow that the box is inside.pParentBox
- The outer ProofBox that contains this ProofBox.public ProofBox(ProofLine pGoal, ProofWindow pParentWindow, ProofBox pParentBox)
pGoal
- The goal of the ProofBoxpParentWindow
- The ProofWindow that the box is inside.pParentBox
- The outer ProofBox that contains this ProofBox.Method Detail |
---|
public ProofBox getNextBox()
public ProofBox setNextBox()
public boolean hasNextBox()
public ProofBox getOlderSiblingBox()
public void setOlderSiblingBox(ProofBox pSibling)
pSibling
- older sibling of this ProofBoxpublic void setBoxStarted(boolean pOption)
pOption
- set if proof has been started for the box yetpublic boolean isProved()
public boolean getDisplayBorder()
public void setDisplayBorder(boolean pOption)
pOption
- Box is displayed when true, otherwise hiddenpublic boolean getDisplayItems()
public void setDisplayItems(boolean pOption)
pOption
- Box is displayed when true, otherwise hiddenpublic void setDashedBox(boolean pOption)
pOption
- A dashed line ProofBox is displayed when truepublic boolean isVertical()
public void setVertical(boolean pOpt)
pOpt
- set true to display the boxes verticallypublic int getUnknownCount()
public void setUnknownCount(int pUnknownCount)
pUnknownCount
- value to set unknownCountpublic void incrementUnknownCount()
public int getInvCount()
public void setInvCount(int pInvCount)
pInvCount
- value to set invCountpublic void incrementInvCount()
public java.util.List<ProofItem> getProofItems()
public int[] recalculateLineNum(int pFirstProofLine, int pFirstProgLine)
recalculateLineNum
in class ProofItem
pFirstProofLine
- The value of the first ProofLine in the ProofBoxpFirstProgLine
- the value o fhe first ProgramLine in the ProofBoxpublic ProofItem next(ProofItem pCurrent)
pCurrent
- current ProofItempublic int getIndex(ProofItem pCurrent)
pCurrent
- current ProofItempublic ProofItem getProofItem(int i)
i
- ProofItem to returnpublic void addItem(ProofItem pItem)
pItem
- ProofItem to be addedpublic void addItem(int pIndex, ProofItem pItem)
pIndex
- Position to addpItem
- ProofItem to be addedpublic void removeItem(int pIndex)
pIndex
- Index of ProofItem to be removedpublic void addSkolems(ProofBox pParBox, PanSignature pTemp)
public void addToSignature(java.util.List<Atom> pNewAtoms)
pNewAtoms
- the atoms to be added to the signaturepublic PanSignature getSignature()
public PanSignature getMainSignature()
public void deselectAll()
public javax.swing.JPanel display()
display
in class ProofItem
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
mouseClicked
in class ProofItem
e
- the object with a mouse listener that was clickedpublic void cleanup()
public void regenerate(ProofBox pOutsideBox, ProofWindow pParentWindow)
pOutsideBox
- destination of regenerated ProofBoxpParentWindow
- window which the current and new ProofBox belong topublic void actionPerformed(java.awt.event.ActionEvent pEvent)
actionPerformed
in interface java.awt.event.ActionListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |