|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.aspsimon.termcomp.entity.LPProblem
public class LPProblem
Represents a Logic Programming problem for use in the competition. This class
implements the generic TPInterface which ensures that a lot of code
can be used generically, regardless of whether it is working with
TRSProblems, SRSProblems or FPProblems.
Logic Programs in the TPDB are in Prolog.
This class is replaced by LPProgram which fits in the
TerminationProblem inheritance hierarchy.
| Constructor Summary | |
|---|---|
LPProblem()
Deprecated. |
|
| Method Summary | |
|---|---|
User |
getApprovedBy()
Deprecated. Get the User with database administrative rights who approved
this termination problem. |
java.lang.Long |
getLpId()
Deprecated. Get the unique identifier for this LPProblem. |
java.lang.String |
getOriginalFileName()
Deprecated. Get the original filename of this Termination Problem where it is
stored under /opt/competition/tpdb/. |
java.lang.String |
getProgram()
Deprecated. Get the full text of the Prolog program. |
java.lang.String |
getQuery()
Deprecated. Get the query which this program should be checked for. |
User |
getSubmittedBy()
Deprecated. Get the User who submitted this termination problem. |
java.sql.Timestamp |
getSubmittedDate()
Deprecated. Set the date and time this termination problem was originally submitted to the TPDB. |
java.lang.Long |
getTPId()
Deprecated. Get the unique identifier for this Termination Problem. |
java.lang.String |
getType()
Deprecated. Get the type of Termination Problem we are working with. |
boolean |
isApproved()
Deprecated. Determine whether this termination problem is approved for public consumption. |
boolean |
isRejected()
Deprecated. Determines whether this termination problem passed the review process or not. |
boolean |
isSecret()
Deprecated. Return the secret status of this problem. |
void |
prepersist()
Deprecated. Hibernate lifecycle convenience method. |
void |
setApproved(boolean approved)
Deprecated. Set the approval status of this problem. |
void |
setApprovedBy(User approvedBy)
Deprecated. Set the User with administrative rights who approved this
problem. |
void |
setLpId(java.lang.Long lpId)
Deprecated. Set the unique identifier for this LPProblem. |
void |
setOriginalFileName(java.lang.String originalFileName)
Deprecated. Set the original filename of this Termination Problem |
void |
setProgram(java.lang.String program)
Deprecated. Set the Prolog program for this Logic Programming problem. |
void |
setQuery(java.lang.String query)
Deprecated. Set the query to be checked in this problem. |
void |
setRejected(boolean rejected)
Deprecated. Set the rejected status of this problem. |
void |
setSecret(boolean secret)
Deprecated. Set the secret status of this problem. |
void |
setSubmittedBy(User submittedBy)
Deprecated. Set the User who submitted this problem. |
void |
setSubmittedDate(java.sql.Timestamp submittedDate)
Deprecated. Set the date this problem was submitted to the TPDB. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LPProblem()
| Method Detail |
|---|
public java.lang.Long getLpId()
LPProblem.
LPProblem. Globally unique.public java.lang.String getOriginalFileName()
Termination Problem where it is
stored under /opt/competition/tpdb/.
getOriginalFileName in interface TPInterface/opt/competition/tpdb/.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 boolean isApproved()
isApproved in interface TPInterfacepublic boolean isRejected()
isRejected in interface TPInterfacepublic boolean isSecret()
isSecret in interface TPInterfacepublic User getSubmittedBy()
User who submitted this termination problem.
getSubmittedBy in interface TPInterfaceUser who submitted this problem.public User getApprovedBy()
User with database administrative rights who approved
this termination problem. Currently unused.
getApprovedBy in interface TPInterfaceUser who approved this problempublic java.sql.Timestamp getSubmittedDate()
getSubmittedDate in interface TPInterfacepublic void setLpId(java.lang.Long lpId)
LPProblem. Must be globally
unique, otherwise the database will complain heavily. There is normally
no need to actually use this call in normal programming.
lpId - The globally unique identifier for this LPProblem.public void setOriginalFileName(java.lang.String originalFileName)
Termination Problem
setOriginalFileName in interface TPInterfaceoriginalFileName - The file name relative to /opt/competition/tpdb/.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 void setApproved(boolean approved)
setApproved in interface TPInterfaceapproved - A boolean value.public void setRejected(boolean rejected)
setRejected in interface TPInterfacerejected - A boolean value.public void setSecret(boolean secret)
setSecret in interface TPInterfacesecret - A boolean value representing whether this problem is secret or
not.public void setSubmittedBy(User submittedBy)
User who submitted this problem.
setSubmittedBy in interface TPInterfacesubmittedBy - The User who submitted the problem.public void setApprovedBy(User approvedBy)
User with administrative rights who approved this
problem.
setApprovedBy in interface TPInterfaceapprovedBy - The User who approved this problem.public void setSubmittedDate(java.sql.Timestamp submittedDate)
setSubmittedDate in interface TPInterfacesubmittedDate - The time and date this problem was originally submitted.public void prepersist()
public java.lang.Long getTPId()
Termination Problem. As
Hibernate maintains a single sequence for all managed database
objects, this is guaranteed to be globally unique as long as the object
was created through a hibernate session.
getTPId in interface TPInterfaceTermination Problem.public java.lang.String getType()
Termination Problem we are working with. Can
currently be one of the following:
TRSProblemSRSProblemFPProblemLPProblem
getType in interface TPInterface
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||