public class HarvestStatistics extends Object
Modifier and Type | Field and Description |
---|---|
private int |
harvestCount
The number of harvesting for this harvester.
|
protected String |
harvesterName
The name of the harvester associated with these stats.
|
private long |
lastHarvestingTime
The last ended harvesting time for this harvester.
|
private long |
lastStartHarvestingTime
The last harvest start time for this harvester.
|
private int |
totalCandidateCount
The number of non-redundant candidates that this harvester has discovered
during all its harvests.
|
Constructor and Description |
---|
HarvestStatistics() |
Modifier and Type | Method and Description |
---|---|
int |
getHarvestCount()
Returns the number of harvests that the harvester associated with these
statistics has completed so far.
|
long |
getHarvestDuration()
Returns the current harvesting time in ms.
|
String |
getName()
Returns the name of the associated harvester.
|
int |
getTotalCandidateCount()
Returns the number of candidates gathered by the associated harvester.
|
protected void |
setName(String harvesterName)
Specifies the name of the associated harvester.
|
protected void |
startHarvestTiming()
Starts the harvesting timer.
|
protected void |
stopHarvestTiming(Collection<LocalCandidate> harvest)
Stops the harvesting timer.
|
protected void |
stopHarvestTiming(int candidateCount)
Stops the harvesting timer.
|
String |
toString()
Returns a string representation of these statistics in a concise format.
|
private int harvestCount
private long lastStartHarvestingTime
private long lastHarvestingTime
private int totalCandidateCount
protected String harvesterName
protected void startHarvestTiming()
protected void stopHarvestTiming(Collection<LocalCandidate> harvest)
harvest
- the harvest that we just concluded.protected void stopHarvestTiming(int candidateCount)
candidateCount
- the number of candidates we harvested.public long getHarvestDuration()
public int getTotalCandidateCount()
public int getHarvestCount()
protected void setName(String harvesterName)
harvesterName
- the name of the associated harvester.public String getName()
Copyright © 2018. All rights reserved.