private class ProgressCounter.ProgressCount extends java.lang.Object implements IProgressCapsule
| Modifier and Type | Field and Description |
|---|---|
private int |
m_counterValue
The current value of the counter
|
private int |
m_maxPacket
the maximal value for the number of packets
The maximum is set when we initialize the Capsule
|
private int |
m_status
The internal status of the ProgressCapsule
|
PROGRESS_ABORTED, PROGRESS_FAILED, PROGRESS_FINISHED, PROGRESS_NOT_STARTED, PROGRESS_ONGOING| Constructor and Description |
|---|
ProgressCount(int a_max)
A new capsule has a status "ONGOING"
The maximum can be set by an other function, the minimum is always 0
|
| Modifier and Type | Method and Description |
|---|---|
int |
getMaximum() |
java.lang.String |
getMessage() |
int |
getMinimum() |
int |
getStatus() |
int |
getValue() |
void |
incrValue(int a_incrValue) |
void |
reset() |
void |
setMaximum(int a_maximum) |
void |
setStatus(int a_status) |
private int m_maxPacket
private int m_counterValue
private int m_status
for the constantsProgressCount(int a_max)
a_max - The maximum at the beginning of capsule lifepublic void reset()
reset in interface IProgressCapsulepublic int getMinimum()
getMinimum in interface IProgressCapsulepublic int getValue()
getValue in interface IProgressCapsulepublic int getStatus()
getStatus in interface IProgressCapsulepublic void setStatus(int a_status)
public java.lang.String getMessage()
getMessage in interface IProgressCapsulepublic int getMaximum()
getMaximum in interface IProgressCapsulepublic void setMaximum(int a_maximum)
public void incrValue(int a_incrValue)
Copyright © 2023. All rights reserved.