public enum ModelInstanceState extends Enum<ModelInstanceState>
Enum Constant and Description |
---|
CREATED
Model instance created but execution of model not started.
|
FINISHED
Model instance finished
|
MODEL_UPDATE_ABORTED
Model update aborted.
|
MODEL_UPDATE_POSTPROCESSING
Model update postprocessing phase.
|
MODEL_UPDATE_PREPROCESSED
Model update preprocessed phase.
|
MODEL_UPDATE_PREPROCESSING
Model update preprocessing phase.
|
MODEL_UPDATE_TRANSFORMED
Model update transformed phase.
|
MODEL_UPDATE_UPDATED
Model update finished.
|
RUNNING
Model instance running.
|
SUSPENDED
Model instance suspended.
|
Modifier and Type | Field and Description |
---|---|
static Set<ModelInstanceState> |
INVOKABLE_STATES
The set of invokable states.
|
static Set<ModelInstanceState> |
MODEL_UPDATE_ABORTABLE_STATES
The set of model update states which can be aborted.
|
static Set<ModelInstanceState> |
MODEL_UPDATE_STATES
The set of model update states.
|
static Set<ModelInstanceState> |
MODEL_UPDATEABLE
The set of model instance states which allow model update to be performed.
|
static Set<ModelInstanceState> |
RESTARTABLE_STATES
The set of restartable states.
|
static Set<ModelInstanceState> |
RESUMABLE_STATES
The set of resumable states.
|
static Set<ModelInstanceState> |
RUNNING_STATES
The set of running states.
|
static Set<ModelInstanceState> |
SUSPENDABLE_STATES
The set of suspendable states.
|
static Set<ModelInstanceState> |
SUSPENDED_STATES
The set of suspended states.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canAbortModelUpdate()
Returns true if a model instance in this state is performing a model update and can be
aborted.
|
static boolean |
canFinish(ModelInstanceState state)
Returns true if model can be finished.
|
static boolean |
canFinishAll(Set<ModelInstanceState> states)
Returns true if models in all input states models can be finished.
|
boolean |
canResume()
Returns true if a model instance in this state can be resumed.
|
boolean |
canSuspend()
Returns true if a model instance in this state can be suspended.
|
boolean |
isFinished()
Returns true if this a finished state.
|
boolean |
isModelUpdate()
Returns true if a model instance in this state is performing a model update.
|
boolean |
isRunning()
Returns true if a model instance in this state is running.
|
boolean |
isSuspended()
Returns true if a model instance in this state is suspended.
|
static ModelInstanceState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ModelInstanceState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ModelInstanceState CREATED
public static final ModelInstanceState RUNNING
public static final ModelInstanceState SUSPENDED
public static final ModelInstanceState FINISHED
public static final ModelInstanceState MODEL_UPDATE_PREPROCESSING
public static final ModelInstanceState MODEL_UPDATE_PREPROCESSED
public static final ModelInstanceState MODEL_UPDATE_TRANSFORMED
public static final ModelInstanceState MODEL_UPDATE_POSTPROCESSING
public static final ModelInstanceState MODEL_UPDATE_UPDATED
public static final ModelInstanceState MODEL_UPDATE_ABORTED
public static final Set<ModelInstanceState> SUSPENDED_STATES
public static final Set<ModelInstanceState> RUNNING_STATES
public static final Set<ModelInstanceState> SUSPENDABLE_STATES
public static final Set<ModelInstanceState> RESUMABLE_STATES
public static final Set<ModelInstanceState> INVOKABLE_STATES
public static final Set<ModelInstanceState> RESTARTABLE_STATES
public static final Set<ModelInstanceState> MODEL_UPDATE_STATES
public static final Set<ModelInstanceState> MODEL_UPDATE_ABORTABLE_STATES
public static final Set<ModelInstanceState> MODEL_UPDATEABLE
public static ModelInstanceState[] values()
for (ModelInstanceState c : ModelInstanceState.values()) System.out.println(c);
public static ModelInstanceState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isSuspended()
public boolean isRunning()
public boolean isFinished()
public boolean canResume()
public boolean canSuspend()
public boolean canAbortModelUpdate()
public boolean isModelUpdate()
public static boolean canFinishAll(Set<ModelInstanceState> states)
states
- public static boolean canFinish(ModelInstanceState state)
state
- Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.