|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
IWNodeSetOccur interface represents the actual "occurence"
of a Nodeset is a proof. In general, the two would be more of less the same
- however differences occur when the same nodeset is being used at two places
in a proof. In such a scenario, it is the same Nodeset but a different
Nodeset occurence. It is necessary to support two separate notions because
IWNodeset is more concerned with representation of proofs and
IWNodeSetOccur is more concerned with activities like browsing
Nodesets. For example, one may be browsing Nodesets in a proof browser and
the same Nodeset may be present in two places. However, from a user interface
point of view, the user may desire to control the two Nodesets separately.
In such situations, the notion of occurence separate from the Nodeset makes a
lot of sense.
| Method Summary | |
void |
addAntecedent(long targetId,
java.lang.String newUri)
GUESS Adds the nodeset with URI newUri as an antecedent to all
inference steps of the node set occurrence with ID targetId.with the id
targetId and URI newUri. |
void |
addInferenceStepOccurrence(IWInferenceStepOccur newInferenceStepOccur)
Adds the specified inference step occurrence to the list of inference step occurrences. |
void |
deleteAntecedent(long antId)
GUESS Removes the antecedent with the id antID and also
deletes the antecedent. |
void |
findHiddenAntecedents(java.util.ArrayList result)
Recursively find all hidden antecedents |
void |
findInferenceStepsWithAntecedent(long antId,
java.util.ArrayList result)
Recursively find all inference steps which have the antecedent with id antId. |
void |
findNodesByID(java.util.ArrayList result,
long inId)
Adds all nodesets in the proof tree below the current nodeset which have id inId to the list result. |
void |
findVisibleAntecedents(java.util.ArrayList result)
Recursively find all visible antecedents |
IWNodeSetOccur |
getConsequence()
Return conclusion node when viewing. |
long |
getHiddenNodeSetIds()
|
java.util.ArrayList |
getHiddenNodeSets()
Returns a list ids of all hidden nodes. |
java.util.List |
getInferenceStepOccurrences()
Returns a list of objects each of type IWInferenceStepOccur. |
java.util.List |
getInferenceStepsWithAntecedent(long antId)
Returns a list of inference steps that have antecedentsmatch the specified id. |
IWNodeSetOccur |
getNodeByID(long inId)
Recursively search this node and its descendents with specified id. |
long |
getNodeSetID()
Returns the id of this node. |
boolean |
getVisible()
Return the visibility of this node when viewing. |
java.util.ArrayList |
getVisibleNodes()
Returns a list of visible nodes for viewing. |
void |
makeNodeSetPath(long nodeId)
|
void |
markNodeVisible(long nodeId,
boolean visible)
Set the visibility of specific node. |
void |
removeAntecedent(long antId)
GUESS Removes the antecedent with the id antID without
deleting the antecedent. |
void |
removeInferenceRule(long targetId)
GUESS Remove inference rules associated with all inference steps of the node set occurrence with ID targetId. |
void |
replaceStringInConclusion(java.lang.String oldStr,
java.lang.String newStr)
Recursively replace old string occurrences in conclusions with new string. |
void |
setConsequence(IWNodeSetOccur inConclusionNode)
Set conclusion node for viewing. |
void |
setInferenceStepOccurrences(java.util.List _newInferenceStepOccurrences)
Sets the inference step occurence list to _newInferenceStepOccurrences. |
void |
setNodeSetID(long[] idNum,
boolean deep)
Set the id of this node. |
void |
setNodesVisible(boolean visible,
boolean deep)
Recursively set nodesets visibility for viewing. |
void |
setVisible(boolean inVisible)
Set the visibility of this node for viewing. |
| Methods inherited from interface iw.model.IWNodeSet |
addConclusionFiller, addInferenceStep, getConclusion, getConclusionFillers, getInferenceSteps, getLanguage, getProof, isAxiom, isFullLoaded, setConclusion, setConclusionFillers, setInferenceSteps, setLanguage, setProof |
| Methods inherited from interface iw.model.IWProofElement |
getShortName, setShortName |
| Methods inherited from interface iw.model.IWModelElement |
getFirstSubmissionDate, getLastSubmissionDate, getModel, getURI, setFirstSubmissionDate, setLastSubmissionDate, setModel, setURI |
| Method Detail |
public java.util.List getInferenceStepOccurrences()
IWInferenceStepOccur. These
objects correspond to the occurrences of the inference steps of the Nodeset.
List of the inference step occurences of the Nodesetpublic void setInferenceStepOccurrences(java.util.List _newInferenceStepOccurrences)
public void addInferenceStepOccurrence(IWInferenceStepOccur newInferenceStepOccur)
newInferenceStepOccur - the new inference step occurrencepublic IWNodeSetOccur getConsequence()
public void setConsequence(IWNodeSetOccur inConclusionNode)
inConclusionNode - public boolean getVisible()
public void setVisible(boolean inVisible)
inVisible - visible or imvisiblepublic long getNodeSetID()
public void setNodeSetID(long[] idNum,
boolean deep)
idNum - iddeep - if the id is to be set recursivelypublic IWNodeSetOccur getNodeByID(long inId)
inId - search node id
public java.util.ArrayList getVisibleNodes()
public java.util.ArrayList getHiddenNodeSets()
public long getHiddenNodeSetIds()
public void setNodesVisible(boolean visible,
boolean deep)
visible - flagdeep - recursive flagpublic void makeNodeSetPath(long nodeId)
public void markNodeVisible(long nodeId,
boolean visible)
nodeId - id of the node to be modifiedvisible - visibility for viewingpublic java.util.List getInferenceStepsWithAntecedent(long antId)
antId - id of the antecedent
public void removeAntecedent(long antId)
antID without
deleting the antecedent.
antId - the id of the antecedent to be removedpublic void deleteAntecedent(long antId)
antID and also
deletes the antecedent.
antId - the id of the antecedent to be removed
public void addAntecedent(long targetId,
java.lang.String newUri)
newUri as an antecedent to all
inference steps of the node set occurrence with ID targetId.with the id
targetId and URI newUri.
targetId - the id of the new antecedentnewUri - the URI of the new antecedentpublic void removeInferenceRule(long targetId)
targetId.
targetId - the node ID of the node set
public void findNodesByID(java.util.ArrayList result,
long inId)
inId to the list result.
result - contains the list of Nodeset occurences which have the given idpublic void findVisibleAntecedents(java.util.ArrayList result)
result - holds all visible antecedentspublic void findHiddenAntecedents(java.util.ArrayList result)
result - holds all hidden antecedents
public void findInferenceStepsWithAntecedent(long antId,
java.util.ArrayList result)
antId.
result - holds all inference steps satisfying the criteria
public void replaceStringInConclusion(java.lang.String oldStr,
java.lang.String newStr)
oldStr - string to be replacednewStr - string to replace
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||