Interface ProgressModelInterface
- All Superinterfaces:
Remote,Serializable
- All Known Implementing Classes:
ProgressModel,ProgressModelSkeleton,ProgressModelStub
Interface for progress model.
- Version:
- 10.1.1
- Author:
- jmback
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdvance the element counterGet the configuration item in model transformation configuration from which the configurable item is currently executed in the current model transformation.gets the current processed model element.org.jdom2.DocumentGet content of progress model as a document.Get number of model elements treated in the current progress step and number of current model element.getStep()Get the number of progress steps to be executed and number of current progress step.booleanThe progress model is waiting for new information from engine.booleanHas the progress model already started? Only for a started progress model a progress dialog is shown.voidreset()Resets the ProgressModel.voidsetClientWaiting(boolean bWaiting) Tell the progress model, whether the progress client is waiting on new information from server engine.voidSet the configuration item in model transformation configuration from which the configurable item is currently executed in the current model transformation.voidsetCurrentElement(ProgressInfo iInfo) Set the current element.voidsetNumModelElements(int numModelElements) Set number of model elements treated in the current progress step.voidsetNumSteps(int numSteps) Set number of model transformation steps to be executed.voidsetStarted(boolean started) Set to true, if the progress model already has started.voidAdvance the step countervoidstepInto()Continue processing until the next of the son type.voidstepOut()Continue processing until the next of the parent type.voidstepOver()Continue processing until the next of the same type.
-
Method Details
-
isStarted
Has the progress model already started? Only for a started progress model a progress dialog is shown.- Returns:
- True if progress model has started
- Throws:
RemoteException- communication error
-
setStarted
Set to true, if the progress model already has started.- Parameters:
started- True if progress model has started- Throws:
RemoteException- communication error
-
isClientWaiting
The progress model is waiting for new information from engine. This is for synchronization of progress client and server engine.- Returns:
- true, if the progress client is waiting for new information.
- Throws:
M2MExceptionRemoteException
-
setClientWaiting
Tell the progress model, whether the progress client is waiting on new information from server engine. This is for synchronization of progress client and server engine.- Parameters:
bWaiting- true, if the progress client is waiting for new information.- Throws:
M2MExceptionRemoteException
-
getStep
Get the number of progress steps to be executed and number of current progress step.- Returns:
- relative number of steps
- Throws:
RemoteException- communication error
-
setNumSteps
Set number of model transformation steps to be executed.- Parameters:
numSteps- Number of steps- Throws:
RemoteException- communication error
-
getModelElement
Get number of model elements treated in the current progress step and number of current model element.- Returns:
- relative number of model elements
- Throws:
RemoteException- communication error
-
setNumModelElements
Set number of model elements treated in the current progress step.- Parameters:
numModelElements- Number of model elements- Throws:
RemoteException- communication error
-
setCurrentElement
Set the current element.- Parameters:
iInfo- Next element- Throws:
M2MExceptionRemoteException
-
getCurrentElement
gets the current processed model element.- Returns:
- currently processed element
- Throws:
M2MExceptionRemoteException
-
getCurrentConfigurationItem
Get the configuration item in model transformation configuration from which the configurable item is currently executed in the current model transformation.- Returns:
- underlying configuration item
- Throws:
M2MExceptionRemoteException
-
setCurrentConfigurationItem
Set the configuration item in model transformation configuration from which the configurable item is currently executed in the current model transformation.- Parameters:
iItem- underlying configuration item- Throws:
M2MExceptionRemoteException
-
reset
Resets the ProgressModel.- Throws:
RemoteException- communication error
-
stepOver
Continue processing until the next of the same type.- Throws:
RemoteException- communication error
-
stepOut
Continue processing until the next of the parent type.- Throws:
RemoteException- communication error
-
stepInto
Continue processing until the next of the son type.- Throws:
RemoteException- communication error
-
getDocument
Get content of progress model as a document.- Returns:
- XML document containing the content of the progress model
- Throws:
SevereExceptionM2MExceptionRemoteException
-
stepAdvance
void stepAdvance()Advance the step counter -
elementAdvance
void elementAdvance()Advance the element counter
-