|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.aspsimon.termcomp.entity.TerminationProblem
org.aspsimon.termcomp.entity.LPProgram
public class LPProgram
This class represents a Logic Programming problem for use in the competition.
It replaces the LPProblem class and integrates into the
TerminationProblem hierarchy which should make life a lot easier.
Logic Programs in the TPDB are in Prolog.
| Constructor Summary | |
|---|---|
LPProgram()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getProgram()
Get the full text of the Prolog program. |
java.lang.String |
getQuery()
Get the query which this program should be checked for. |
java.lang.String |
getType()
Get the type of Termination Problem we are working with. |
void |
setProgram(java.lang.String program)
Set the Prolog program for this Logic Programming problem. |
void |
setQuery(java.lang.String query)
Set the query to be checked in this problem. |
| Methods inherited from class org.aspsimon.termcomp.entity.TerminationProblem |
|---|
getApprovedBy, getOriginalFileName, getSubmittedBy, getSubmittedDate, getTPId, isApproved, isRejected, isSecret, prepersist, setApproved, setApprovedBy, setOriginalFileName, setRejected, setSecret, setSubmittedBy, setSubmittedDate, setTPId |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LPProgram()
| Method Detail |
|---|
public java.lang.String getProgram()
@Lob in order for the database to not truncate it.
public java.lang.String getQuery()
NO QUERY — these problems are ignored during a
competition.
public void setProgram(java.lang.String program)
program - The source code of the Prolog program.public void setQuery(java.lang.String query)
query - The query which must be checked.public java.lang.String getType()
Termination Problem we are working with. Can
currently be one of the following:
TRSProblemSRSProblemFPProblemLPProblem
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||