public interface IScenarioInstance
This API provides a mechanism to access the values of individual parameters, and to delete the instance. It is also possible to determine the timestamp of the last received Update event.
Modifier and Type | Method and Description |
---|---|
void |
addListener(java.beans.PropertyChangeListener listener)
Add a listener to the list of those interested in changes to any
object property, or any scenario instance (input and/or output) parameter.
|
void |
addListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
Add a listener to the list of those interested in changes to the
object property with given name, or the scenario instance (input and/or
output) parameter with the given name.
|
boolean |
delete()
Delete this instance.
|
java.lang.Long |
getId()
Get the ID of the instance.
|
long |
getLastUpdateTime()
Get the timestamp (milliseconds) of the last known update event for this instance.
|
java.lang.String |
getOwner()
Get the owner (username) of the instance.
|
IScenarioDefinition |
getScenarioDefinition()
Get the Scenario Definition.
|
InstanceStateEnum |
getState()
Get the current state of the instance.
|
java.lang.Object |
getValue(java.lang.String parameterName)
Get the value of a single specific (input or output) parameter of this instance.
|
void |
removeListener(java.beans.PropertyChangeListener listener)
Remove a listener from the list of those interested in changes to any
object property, or scenario instance parameter.
|
void |
removeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
Remove a listener from the list of those interested in changes to the
object property with given name, or the scenario instance parameter with the given name.
|
boolean |
setValue(java.lang.String parameterName,
java.lang.Object value)
Set the value of a single specific (input) parameter of this instance.
|
boolean |
setValues(java.util.Map<java.lang.String,java.lang.Object> valuesMap)
Set several (input) parameter values of this instance.
|
java.lang.Long getId()
java.lang.String getOwner()
IScenarioDefinition getScenarioDefinition()
boolean delete() throws IllegalCallingThreadException
IllegalCallingThreadException
- if called from the data processing thread
(i.e. from a PropertyChangeListener listening to an instance or definition).boolean setValues(java.util.Map<java.lang.String,java.lang.Object> valuesMap) throws InvalidInputParameterException, IllegalCallingThreadException
valuesMap
- a Map (key String parameterName : value Object) of the values to be set in this instance.InvalidInputParameterException
- when any value in the valuesMap is invalid.
Note that future versions of this API may also throw this exception
to indicate constraint violations.IllegalCallingThreadException
- if called from the data processing thread
(i.e. from a PropertyChangeListener listening to an instance or definition).boolean setValue(java.lang.String parameterName, java.lang.Object value) throws InvalidInputParameterException, IllegalCallingThreadException
parameterName
- The name of the parameter to be set.value
- The new value.InvalidInputParameterException
- when value is invalid.
Note that future versions of this API may also throw this exception
to indicate constraint violations.IllegalCallingThreadException
- if called from the data processing thread
(i.e. from a PropertyChangeListener listening to an instance or definition).java.lang.Object getValue(java.lang.String parameterName)
parameterName
- The name of the parameter to be retrieved.InstanceStateEnum getState()
for list of states
long getLastUpdateTime()
void addListener(java.beans.PropertyChangeListener listener)
listener
- property change listener to invoke when a property or parameter
changes value.void addListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
propertyName
- name of the property or parameter to register interest in.listener
- property change listener to invoke when a property or parameter
changes value.void removeListener(java.beans.PropertyChangeListener listener)
listener
- property change listener to remove from the interest
list.void removeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
propertyName
- name of the property or parameter to remove interest in.listener
- property change listener to remove from the interest
list.Submit a bug or feature
Copyright (c) 2013-2018 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.