|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
org.eclipse.actf.validation.core.AbstractValidationProcess
public abstract class AbstractValidationProcess
base implementation of IValidationProcess
.
Note: Clients are encouraged to subclass this class rather than to
implement IValidationProcess
to maintane API compatibility.
Field Summary | |
---|---|
protected IValidationContext |
context
|
protected Map |
contextCache
|
protected ExecutionPoint |
execPoint
|
protected int |
lastNotification
|
protected int |
notificationIncrement
|
protected int |
notificationPercent
|
protected int |
progress
|
protected IRuleBase |
ruleBase
|
protected int |
workEstimate
|
Constructor Summary | |
---|---|
AbstractValidationProcess()
|
Method Summary | |
---|---|
ExecutionPoint |
getExecutionPoint()
returns the ExecutionPoint triggering this IValidationProcess. |
int |
getNotificationPercent()
|
int |
getProgress()
returns the approximate progress relative to the amount of estimated work as an integer percentage. |
IRuleBase |
getRuleBase()
returns the IRuleBase used in this IValidationProcess. |
IValidationContext |
getValidationContext()
returns the IValidationContext used in this IValidationProcess. |
int |
getWorkEstimate()
returns an estimate on the amount of work required by this process. |
protected void |
incrementProgress()
increments the progress value by one. |
protected void |
initProgressEstimates()
|
protected boolean |
isTerminated()
|
protected void |
resetProgress()
|
void |
setExecutionPoint(ExecutionPoint executionPoint)
sets the ExecutionPoint used in this IValidationProcess. |
void |
setNotificationPercent(int percent)
|
protected void |
setProgress(int newProgress)
|
void |
setRuleBase(IRuleBase iRuleBase)
sets the IRuleBase used in this IValidationProcess. |
void |
setValidationContext(IValidationContext valContext)
sets the IValidationContext used in this IValidationProcess. |
Methods inherited from class java.util.Observable |
---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.actf.validation.core.IValidationProcess |
---|
init, run |
Field Detail |
---|
protected IRuleBase ruleBase
protected ExecutionPoint execPoint
protected IValidationContext context
protected int workEstimate
protected int progress
protected int notificationPercent
protected int notificationIncrement
protected int lastNotification
protected Map contextCache
Constructor Detail |
---|
public AbstractValidationProcess()
Method Detail |
---|
public int getProgress()
getProgress
in interface IValidationProcess
protected void setProgress(int newProgress)
protected void incrementProgress()
protected void resetProgress()
protected void initProgressEstimates()
public int getNotificationPercent()
public void setNotificationPercent(int percent)
public int getWorkEstimate()
getWorkEstimate
in interface IValidationProcess
public IRuleBase getRuleBase()
getRuleBase
in interface IValidationProcess
public void setRuleBase(IRuleBase iRuleBase)
setRuleBase
in interface IValidationProcess
iRuleBase
- --
the IRuleBase for this IValidationProcesspublic ExecutionPoint getExecutionPoint()
getExecutionPoint
in interface IValidationProcess
public void setExecutionPoint(ExecutionPoint executionPoint)
setExecutionPoint
in interface IValidationProcess
executionPoint
- --
the ExecutionPoint for this IValidationProcesspublic void setValidationContext(IValidationContext valContext)
setValidationContext
in interface IValidationProcess
valContext
- --
the IValidationContext for this IValidationProcesspublic IValidationContext getValidationContext()
getValidationContext
in interface IValidationProcess
protected boolean isTerminated()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |