public final class ModelInstance extends Object implements Serializable
Modifier | Constructor and Description |
---|---|
protected |
ModelInstance()
Creates new instance.
|
|
ModelInstance(ModelInstanceInfo info,
List<ModuleInstance> moduleInstances,
Collection<Signal> signalQueue,
Collection<ProcessLog> logs,
boolean createProcessLog)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
afterUnmarshal(javax.xml.bind.Unmarshaller unmarshaller,
Object parent) |
void |
beforeUnmarshal(javax.xml.bind.Unmarshaller unmarshaller,
Object parent) |
boolean |
equals(Object obj) |
Context |
getContext(long id)
Returns a context for given id or null if it does not exist.
|
Collection<Context> |
getContexts()
Returns a collection of all contexts.
|
ModelInstanceInfo |
getInfo()
Returns the model instance info.
|
List<ProcessLog> |
getLogs()
Returns the process logs.
|
ModuleInstance |
getModuleInstance(long id)
Returns a module instance for given id or null if it does not exist.
|
ModuleInstance |
getModuleInstance(String name)
Returns a module instance for given module name or null if it does not
exist.
|
List<ModuleInstance> |
getModuleInstances()
Returns the module instances.
|
ProcessInstance |
getProcessInstance(long id)
Returns a process instance for given id or null if it does not exist.
|
List<Signal> |
getSignalQueue()
Returns the signal queue.
|
int |
hashCode() |
boolean |
isCreateProcessLog() |
protected ModelInstance()
public ModelInstance(ModelInstanceInfo info, List<ModuleInstance> moduleInstances, Collection<Signal> signalQueue, Collection<ProcessLog> logs, boolean createProcessLog)
info
- moduleInstances
- signalQueue
- logs
- createProcessLog
- a flag indicating if a process log is created during execution
of this model instanceNullPointerException
- if processInfo
or moduleInstances
is nullpublic ModelInstanceInfo getInfo()
public List<ModuleInstance> getModuleInstances()
public ModuleInstance getModuleInstance(long id)
id
- public ModuleInstance getModuleInstance(String name)
name
- public ProcessInstance getProcessInstance(long id)
id
- public Context getContext(long id)
id
- public Collection<Context> getContexts()
public List<Signal> getSignalQueue()
public List<ProcessLog> getLogs()
public boolean isCreateProcessLog()
public void beforeUnmarshal(javax.xml.bind.Unmarshaller unmarshaller, Object parent)
unmarshaller
- parent
- public void afterUnmarshal(javax.xml.bind.Unmarshaller unmarshaller, Object parent)
unmarshaller
- parent
- Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.