|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.aspsimon.termcomp.entity.FPProblem
public class FPProblem
Represents a Functional 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 LPProblems.
Functional Programs in the TPDB are in Haskell.
This class is replaced by FPProgram which fits in the
TerminationProblem inheritance hierarchy.
| Constructor Summary | |
|---|---|
FPProblem()
Deprecated. |
|
| Method Summary | |
|---|---|
User |
getApprovedBy()
Deprecated. Get the User with database administrative rights who approved
this termination problem. |
java.lang.Long |
getFpId()
Deprecated. Get the unique identifier for this FPProblem. |
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 Haskell program. |
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 |
setFpId(java.lang.Long fpId)
Deprecated. Set the unique identifier for this FPProblem. |
void |
setOriginalFileName(java.lang.String originalFileName)
Deprecated. Set the original filename of this Termination Problem |
void |
setProgram(java.lang.String program)
Deprecated. Set the Haskell program for this Functional Programming 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 FPProblem()
| Method Detail |
|---|
public java.lang.Long getFpId()
FPProblem.
FPProblem. 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 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 setFpId(java.lang.Long fpId)
FPProblem. Must be globally
unique, otherwise the database will complain heavily. There is normally
no need to actually use this call in normal programming.
fpId - The globally unique identifier for this FPProblem.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 Haskell program.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 | |||||||||