|
Hilbert II - JAVA-Packages - Principia Mathematica II | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.meyling.principia.argument.AbstractArgument
com.meyling.principia.argument.AbstractDynamicArgumentList
com.meyling.principia.logic.paragraph.Proposition
Logical sentence.
Constructor Summary | |
Proposition(Argument[] arguments)
Constructs a mathematical proposition with its proof. |
Method Summary | |
void |
check(Module module,
String label)
Check if proof is correct. |
void |
compress()
Remove all double and unused proof lines. |
Argument |
create(Argument[] arguments)
Create a new Argument with given arguments. |
void |
reduceRuleVersion(Module module,
Version version)
Reduce needed rule version and change proof lines in that way. |
void |
replaceProofLineByProofLines(ProofLineList proofLines,
int position)
Replace a single proof line by some (other) proof lines. |
String |
toString()
Get the argument in String form. |
Methods inherited from class com.meyling.principia.argument.AbstractDynamicArgumentList |
add, copy, getArgument, getArgumentSize, insert, remove, replace |
Methods inherited from class com.meyling.principia.argument.AbstractArgument |
containsPatternVariables, equals, getHighestNumber, getPatternVariables, getReplacementParents, getSearchParents, hashCode, matches, matches, replace, replace, replace, replaceMatches |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.meyling.principia.argument.Argument |
containsPatternVariables, copy, equals, getArgument, getArgumentSize, getPatternVariables, getReplacementParents, getSearchParents, hashCode, matches, matches, replace, replace, replace, replaceMatches |
Constructor Detail |
public Proposition(Argument[] arguments) throws ArgumentException
arguments
- sentence and its proof
ArgumentException
- if there is not exactly two
arguments or the first argument is not an instance
of Sentence
or the second argument
is no instance of ProofLineList
.Method Detail |
public final void check(Module module, String label) throws ArgumentException
check
in interface ParagraphCheck
module
- modulelabel
- label of paragraph
ArgumentException
- if proof is not correctpublic final void compress() throws ArgumentException
ArgumentException
- if proof is there were any illegal
line references
IllegalArgumentException
- if there was a programming errorpublic final void reduceRuleVersion(Module module, Version version) throws ArgumentException
module
- this is the connected module
ArgumentException
- if a proof line has major
errors in their line references
UnsupportedOperationException
- if there is a rule
which couldn't yet be reduced to simper rules
because the reduction for that rule isn't
implemented
IllegalArgumentException
- if there was a programming errorpublic final void replaceProofLineByProofLines(ProofLineList proofLines, int position)
compress
the caller could remove
the proof line.
proofLines
- these proof lines should be inserted,
the line references must be already
correctposition
- this line should be replaced by the new
proof lines
IllegalArgumentException
- if position
is
not a valid one, or the remaping failed
because the given proof lines had illegal
referencespublic final Argument create(Argument[] arguments) throws ArgumentException
Argument
create
in interface Argument
create
in class AbstractDynamicArgumentList
ArgumentException
public final String toString()
Argument
String
form.
toString
in interface Argument
toString
in class AbstractDynamicArgumentList
|
Hilbert II - JAVA-Packages - Principia Mathematica II | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
©left GNU General Public Licence All Rights Reserved. |