public class Module extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<ModelInstance> |
findModelInstances()
Finds all model instances of this module.
|
List<ModelInstance> |
findModelInstances(ModelInstanceState state,
ModelInstanceState... rest)
Finds all model instances of this module with specified states.
|
String |
getHash()
Returns the module hash.
|
long |
getId()
Returns the module id.
|
String |
getName()
Returns the module name.
|
LspsRemote |
getRemote()
Returns the associated remote.
|
String |
getVersion()
Returns the module version.
|
int |
hashCode() |
ModelInstance |
startModelInstance()
Starts model instance as a user connected via associated remote.
|
ModelInstance |
startModelInstance(Map<String,String> properties)
Starts a model instance using given properties.
|
ModelInstance |
startModelInstance(String personId)
Starts a model instance as a specific user.
|
String |
toString() |
void |
unload()
Unloads this module.
|
void |
unloadWithDependentModules()
Unloads this module with it's dependent modules.
|
public LspsRemote getRemote()
public long getId()
public String getName()
public String getVersion()
public String getHash()
public void unload()
public void unloadWithDependentModules()
public ModelInstance startModelInstance()
public ModelInstance startModelInstance(String personId)
personId
- the model instance initiator (the user's identifier)public ModelInstance startModelInstance(Map<String,String> properties)
properties
- null
public List<ModelInstance> findModelInstances()
public List<ModelInstance> findModelInstances(ModelInstanceState state, ModelInstanceState... rest)
state
- rest
- Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.