org.semanticweb.lp
Class Literal

java.lang.Object
  extended byorg.semanticweb.lp.Literal
All Implemented Interfaces:
java.io.Serializable

public class Literal
extends java.lang.Object
implements java.io.Serializable

Description of the Class

Author:
Administrator
See Also:
Serialized Form

Constructor Summary
Literal(boolean polarity, java.lang.String predicateSymbol, java.util.ArrayList args)
          Constructor for the Literal object
Literal(boolean polarity, java.lang.String predicateSymbol, Term[] args)
           
Literal(java.lang.String predicateSymbol, java.util.ArrayList args)
          Constructor for the Literal object
Literal(java.lang.String predicateSymbol, Term[] args)
           
 
Method Summary
 Term[] getArgs()
          Gets the args attribute of the Literal object
 int getArity()
          Gets the arity attribute of the Literal object
 boolean getPolarity()
          Gets the polarity attribute of the Literal object
 java.lang.String getPredicateSymbol()
          Gets the predicateSymbol attribute of the Literal object
 boolean isAtom()
          Gets the atom attribute of the Literal object
 java.lang.String toString()
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Literal

public Literal(boolean polarity,
               java.lang.String predicateSymbol,
               java.util.ArrayList args)
Constructor for the Literal object

Parameters:
polarity - Description of the Parameter
predicateSymbol - Description of the Parameter
args - Description of the Parameter

Literal

public Literal(boolean polarity,
               java.lang.String predicateSymbol,
               Term[] args)

Literal

public Literal(java.lang.String predicateSymbol,
               java.util.ArrayList args)
Constructor for the Literal object

Parameters:
predicateSymbol - Description of the Parameter
args - Description of the Parameter

Literal

public Literal(java.lang.String predicateSymbol,
               Term[] args)
Method Detail

isAtom

public boolean isAtom()
Gets the atom attribute of the Literal object

Returns:
The atom value

getPolarity

public boolean getPolarity()
Gets the polarity attribute of the Literal object

Returns:
The polarity value

getArgs

public Term[] getArgs()
Gets the args attribute of the Literal object

Returns:
The args value

getPredicateSymbol

public java.lang.String getPredicateSymbol()
Gets the predicateSymbol attribute of the Literal object

Returns:
The predicateSymbol value

getArity

public int getArity()
Gets the arity attribute of the Literal object

Returns:
The arity value

toString

public java.lang.String toString()
Description of the Method

Returns:
Description of the Return Value