kawigi.widget
Class ProblemTimingInfo

java.lang.Object
  extended by kawigi.widget.ProblemTimingInfo

public class ProblemTimingInfo
extends java.lang.Object

This class is used to persist data about timing on a specific problem that you've opened. This persistence allows KawigiEdit to show correct timing info for a problem that you closed and reopened, as long as you didn't exit the contest applet in between.


Constructor Summary
ProblemTimingInfo(double points, long startTime, int problemID)
          Constructs a new ProblemTimingInfo object and initializes variables.
 
Method Summary
 double currentScore()
          Returns the score on the current problem if it were submitted right now.
 double getPoints()
          Returns the point value for this problem.
 int getProblemID()
          Returns the unique ProblemID of this problem from TopCoder.
 long getStartTime()
          Returns the time that this problem was opened.
 void setContestLength(int minutes)
          Sets the length of the contest.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProblemTimingInfo

public ProblemTimingInfo(double points,
                         long startTime,
                         int problemID)
Constructs a new ProblemTimingInfo object and initializes variables. Note that the contest length is assumed to be 75 minutes here.

Method Detail

getPoints

public double getPoints()
Returns the point value for this problem.


getProblemID

public int getProblemID()
Returns the unique ProblemID of this problem from TopCoder.


getStartTime

public long getStartTime()
Returns the time that this problem was opened.


setContestLength

public void setContestLength(int minutes)
Sets the length of the contest.


currentScore

public double currentScore()
Returns the score on the current problem if it were submitted right now.