com.meyling.principia.logic.paragraph
Class Axiom
java.lang.Object
|
+--com.meyling.principia.argument.AbstractArgument
|
+--com.meyling.principia.argument.AbstractArgumentList
|
+--com.meyling.principia.logic.paragraph.Axiom
- All Implemented Interfaces:
- Argument, ParagraphCheck
- public class Axiom
- extends AbstractArgumentList
- implements Argument, ParagraphCheck
Logical Axiom.
- Version:
- $Revision 0.00.50$
- Author:
- Michael Meyling
|
Constructor Summary |
Axiom(Argument[] arguments)
Constructs a logical Axiom. |
| 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 interface com.meyling.principia.argument.Argument |
containsPatternVariables, copy, equals, getArgument, getArgumentSize, getPatternVariables, getReplacementParents, getSearchParents, hashCode, matches, matches, replace, replace, replace, replaceMatches |
Axiom
public Axiom(Argument[] arguments)
throws ArgumentException
- Constructs a logical Axiom.
- Parameters:
arguments - formula to be an Axiom- Throws:
ArgumentException - if there is not exactly one
argument or the first argument is not an instance
of Formula or it contains any
PatternVariable.
check
public final void check(Module module,
String label)
- Tries to add this axiom.
- Specified by:
check in interface ParagraphCheck
- Parameters:
module - modulelabel - label of paragraph
create
public final Argument create(Argument[] arguments)
throws ArgumentException
- Description copied from interface:
Argument
- Create a new Argument with given arguments.
- Specified by:
create in interface Argument- Overrides:
create in class AbstractArgumentList
- Following copied from interface:
com.meyling.principia.argument.Argument
- Parameters:
arguments - with these arguments the operator should
be created- Returns:
- new constructed Argument
- Throws:
ArgumentException - if creation failed
toString
public final String toString()
- Description copied from interface:
Argument
- Get the argument in
String form.
- Specified by:
toString in interface Argument- Overrides:
toString in class AbstractArgumentList
- Following copied from interface:
com.meyling.principia.argument.Argument
- Returns:
- readable formula