Package info.mikethomas.jfold.unit
Class Unit
java.lang.Object
info.mikethomas.jfold.unit.Unit
- All Implemented Interfaces:
Serializable
Represents a Folding@Home Work Unit.
- Version:
- 7.6.21
- Author:
- Michael Thomas (mikepthomas@outlook.com)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTime and date this work unit was assigned.intNumber of attempts to send completed Unit to collection server.doubleBaseline number of points awarded for completion of this Unit.intgetClone()Clone of the Project.getCore()Core Identifier.doubleEstimated number of points awarded for completion of this Unit.getCs()Collection server.Time and date this work unit needs to be completed by.Deprecated.no longer returned by queue-infogetError()Unit error.getEta()Estimated time of arrival.intNumber of frames completed.intgetGen()Generation of the Project.getId()Identifier.Time until the next attempt to send completed Unit to collection server.Percentage of work completed.doublegetPpd()Points per day.intProject this Unit belongs to.intgetRun()Run of the Project.getSlot()Slot number this Unit belongs to.getState()Unit state.Time and date this work unit expires.Time remaining.intTotal number of frames in this Unit.getTpf()Time per frame.getUnit()Unique ID of the unit.Reason the Unit is waiting.getWs()Work server.toString()
-
Constructor Details
-
Unit
public Unit()
-
-
Method Details
-
getId
Identifier.- Returns:
- the
idfromqueue-info
-
getState
Unit state.- Returns:
- the
statefromqueue-info
-
getError
Unit error.- Returns:
- the
errorfromqueue-info
-
getProject
public int getProject()Project this Unit belongs to.- Returns:
- the
projectfromqueue-info
-
getRun
public int getRun()Run of the Project.- Returns:
- the
runfromqueue-info
-
getClone
public int getClone()Clone of the Project.- Returns:
- the
clonefromqueue-info
-
getGen
public int getGen()Generation of the Project.- Returns:
- the
genfromqueue-info
-
getCore
Core Identifier.- Returns:
- the
corefromqueue-info
-
getUnit
Unique ID of the unit.- Returns:
- the
unitfromqueue-info
-
getPercentDone
Percentage of work completed.- Returns:
- the
percentdonefromqueue-info
-
getEta
Estimated time of arrival.- Returns:
- the
etafromqueue-info
-
getPpd
public double getPpd()Points per day.- Returns:
- the
ppdfromqueue-info
-
getCreditEstimate
public double getCreditEstimate()Estimated number of points awarded for completion of this Unit.- Returns:
- the
creditestimatefromqueue-info
-
getWaitingOn
Reason the Unit is waiting.- Returns:
- the
waitingonfromqueue-info
-
getNextAttempt
Time until the next attempt to send completed Unit to collection server.- Returns:
- the
nextattemptfromqueue-info
-
getTimeRemaining
Time remaining.- Returns:
- the
timeremainingfromqueue-info
-
getTotalFrames
public int getTotalFrames()Total number of frames in this Unit.- Returns:
- the
totalframesfromqueue-info
-
getFramesDone
public int getFramesDone()Number of frames completed.- Returns:
- the
framesdonefromqueue-info
-
getAssigned
Time and date this work unit was assigned.- Returns:
- the
assignedfromqueue-info
-
getTimeout
Time and date this work unit expires.- Returns:
- the
timeoutfromqueue-info
-
getDeadline
Time and date this work unit needs to be completed by.- Returns:
- the
deadlinefromqueue-info
-
getWs
Work server.- Returns:
- the
wsfromqueue-info
-
getCs
Collection server.- Returns:
- the
csfromqueue-info
-
getAttempts
public int getAttempts()Number of attempts to send completed Unit to collection server.- Returns:
- the
attemptsfromqueue-info
-
getSlot
Slot number this Unit belongs to.- Returns:
- the
slotfromqueue-info
-
getTpf
Time per frame.- Returns:
- the
tpffromqueue-info
-
getBaseCredit
public double getBaseCredit()Baseline number of points awarded for completion of this Unit.- Returns:
- the
basecreditfromqueue-info
-
getDescription
Deprecated.no longer returned by queue-infoProject Description.- Returns:
- the
descriptionfromqueue-info
-
toString
-