Class ProgressModel
java.lang.Object
de.mid.innovator.m2msdk.model.progress.ProgressModel
- All Implemented Interfaces:
ProgressModelInterface,Serializable,Remote
Progress model to hold the current progress in the workflow and in the model
transformation.
- Version:
- 10.1.1
- Author:
- jmback
- See Also:
-
Constructor Summary
Constructors -
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 waiting) 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.
-
Constructor Details
-
ProgressModel
-
-
Method Details
-
isStarted
public boolean isStarted()Description copied from interface:ProgressModelInterfaceHas the progress model already started? Only for a started progress model a progress dialog is shown.- Specified by:
isStartedin interfaceProgressModelInterface- Returns:
- True if progress model has started
-
setStarted
public void setStarted(boolean started) Description copied from interface:ProgressModelInterfaceSet to true, if the progress model already has started.- Specified by:
setStartedin interfaceProgressModelInterface- Parameters:
started- True if progress model has started
-
isClientWaiting
public boolean isClientWaiting()Description copied from interface:ProgressModelInterfaceThe progress model is waiting for new information from engine. This is for synchronization of progress client and server engine.- Specified by:
isClientWaitingin interfaceProgressModelInterface- Returns:
- true, if the progress client is waiting for new information.
-
setClientWaiting
public void setClientWaiting(boolean waiting) Description copied from interface:ProgressModelInterfaceTell 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.- Specified by:
setClientWaitingin interfaceProgressModelInterface- Parameters:
waiting- true, if the progress client is waiting for new information.
-
getStep
Description copied from interface:ProgressModelInterfaceGet the number of progress steps to be executed and number of current progress step.- Specified by:
getStepin interfaceProgressModelInterface- Returns:
- relative number of steps
-
setNumSteps
public void setNumSteps(int numSteps) Description copied from interface:ProgressModelInterfaceSet number of model transformation steps to be executed.- Specified by:
setNumStepsin interfaceProgressModelInterface- Parameters:
numSteps- Number of steps
-
getModelElement
Description copied from interface:ProgressModelInterfaceGet number of model elements treated in the current progress step and number of current model element.- Specified by:
getModelElementin interfaceProgressModelInterface- Returns:
- relative number of model elements
-
setNumModelElements
public void setNumModelElements(int numModelElements) Description copied from interface:ProgressModelInterfaceSet number of model elements treated in the current progress step.- Specified by:
setNumModelElementsin interfaceProgressModelInterface- Parameters:
numModelElements- Number of model elements
-
setCurrentElement
Description copied from interface:ProgressModelInterfaceSet the current element.- Specified by:
setCurrentElementin interfaceProgressModelInterface- Parameters:
iInfo- Next element- Throws:
M2MException
-
getCurrentElement
Description copied from interface:ProgressModelInterfacegets the current processed model element.- Specified by:
getCurrentElementin interfaceProgressModelInterface- Returns:
- currently processed element
-
reset
public void reset()Description copied from interface:ProgressModelInterfaceResets the ProgressModel.- Specified by:
resetin interfaceProgressModelInterface
-
stepInto
public void stepInto()Description copied from interface:ProgressModelInterfaceContinue processing until the next of the son type.- Specified by:
stepIntoin interfaceProgressModelInterface
-
stepOut
public void stepOut()Description copied from interface:ProgressModelInterfaceContinue processing until the next of the parent type.- Specified by:
stepOutin interfaceProgressModelInterface
-
stepOver
public void stepOver()Description copied from interface:ProgressModelInterfaceContinue processing until the next of the same type.- Specified by:
stepOverin interfaceProgressModelInterface
-
getCurrentConfigurationItem
Description copied from interface:ProgressModelInterfaceGet the configuration item in model transformation configuration from which the configurable item is currently executed in the current model transformation.- Specified by:
getCurrentConfigurationItemin interfaceProgressModelInterface- Returns:
- underlying configuration item
-
setCurrentConfigurationItem
public void setCurrentConfigurationItem(ConfigurationItemIF iItem) throws M2MException, RemoteException Description copied from interface:ProgressModelInterfaceSet the configuration item in model transformation configuration from which the configurable item is currently executed in the current model transformation.- Specified by:
setCurrentConfigurationItemin interfaceProgressModelInterface- Parameters:
iItem- underlying configuration item- Throws:
M2MExceptionRemoteException
-
getDocument
Description copied from interface:ProgressModelInterfaceGet content of progress model as a document.- Specified by:
getDocumentin interfaceProgressModelInterface- Returns:
- XML document containing the content of the progress model
- Throws:
RemoteExceptionM2MException
-
stepAdvance
public void stepAdvance()Description copied from interface:ProgressModelInterfaceAdvance the step counter- Specified by:
stepAdvancein interfaceProgressModelInterface
-
elementAdvance
public void elementAdvance()Description copied from interface:ProgressModelInterfaceAdvance the element counter- Specified by:
elementAdvancein interfaceProgressModelInterface
-