org.semanticweb.lp
Class ProgramClause

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

public class ProgramClause
extends FormulaObject
implements java.io.Serializable

Description of the Class

Author:
Administrator
See Also:
Serialized Form

Field Summary
static boolean timemeasure
           
 
Constructor Summary
ProgramClause(java.util.ArrayList head, java.util.ArrayList body)
          Constructor for the ProgramClause object
ProgramClause(Literal[] body)
          Constructor for the ProgramClause object
ProgramClause(Literal[] head, Literal[] body)
          Constructor for the ProgramClause object
 
Method Summary
 Literal[] getBody()
          Gets the body attribute of the ProgramClause object
 Literal[] getHead()
          Gets the head attribute of the ProgramClause object
 boolean isQuery()
          Gets the query attribute of the ProgramClause object
 java.lang.String toPrologString(java.util.ArrayList answerVars)
           
 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
 

Field Detail

timemeasure

public static boolean timemeasure
Constructor Detail

ProgramClause

public ProgramClause(Literal[] head,
                     Literal[] body)
Constructor for the ProgramClause object

Parameters:
head - Description of the Parameter
body - Description of the Parameter

ProgramClause

public ProgramClause(java.util.ArrayList head,
                     java.util.ArrayList body)
Constructor for the ProgramClause object

Parameters:
head - Description of the Parameter
body - Description of the Parameter

ProgramClause

public ProgramClause(Literal[] body)
Constructor for the ProgramClause object

Parameters:
body - Description of the Parameter
Method Detail

isQuery

public boolean isQuery()
Gets the query attribute of the ProgramClause object

Returns:
The query value

getBody

public Literal[] getBody()
Gets the body attribute of the ProgramClause object

Returns:
The body value

getHead

public Literal[] getHead()
Gets the head attribute of the ProgramClause object

Returns:
The head value

toString

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

Returns:
Description of the Return Value

toPrologString

public java.lang.String toPrologString(java.util.ArrayList answerVars)