public static class IlrParallelScenarioProvider.IlrScenarioSuitePart
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
IlrParallelScenarioProvider.IlrScenarioSuitePart(int firstIndex,
int lastIndex)
Creates a scenario suite part, defined as a contiguous subset of scenarios provided by the
scenario provider.
|
IlrParallelScenarioProvider.IlrScenarioSuitePart(int firstIndex,
int lastIndex,
java.io.Serializable customData)
Creates a scenario suite part, defined as a contiguous subset of scenarios provided by the
scenario provider.
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<IlrParallelScenarioProvider.IlrScenarioSuitePart> |
getBalancedListOfScenarioSuiteParts(int totalNumberOfScenarios,
int numberOfParts)
Creates a balanced list of scenario suite parts for a given total number of scenarios.
|
java.io.Serializable |
getCustomData()
Returns the custom data attached to this simulation part, if any.
|
int |
getFirstIndex()
Returns the first index, relative to the complete scenario suite, of this
set of scenarios.
|
int |
getLastIndex()
Returns the last index, relative to the complete scenario suite, of this
set of scenarios.
|
void |
setCustomData(java.io.Serializable customData)
Attach custom data to this simulation part.
|
public IlrParallelScenarioProvider.IlrScenarioSuitePart(int firstIndex,
int lastIndex)
throws IlrScenarioProviderException
IlrScenarioProviderException - if the last index is less than the first index, or if
the first index is less than 0.firstIndex - The first index (at least 0), relative to the complete scenario suite, of this
set of scenarios. The getScenarioAt(int index) method of the scenario provider instance in charge
of providing scenarios for this part is called first using this index value.lastIndex - The last index (greater than or equal to the first index), relative to the complete scenario suite, of this
set of scenarios. The getScenarioAt(int index) method of the scenario provider instance in charge
of providing scenarios for this part is called last using this index value.public IlrParallelScenarioProvider.IlrScenarioSuitePart(int firstIndex,
int lastIndex,
java.io.Serializable customData)
throws IlrScenarioProviderException
IlrScenarioProviderException - if the last index is less than the first index, or if
the first index is less than 0.firstIndex - The first index (at least 0), relative to the complete scenario suite, of this
set of scenarios. The getScenarioAt(int index) method of the scenario provider instance in charge
of providing scenarios for this part is called first using this index value.lastIndex - The last index (greater than or equal to the first index), relative to the complete scenario suite, of this
set of scenarios. The getScenarioAt(int index) method of the scenario provider instance in charge
of providing scenarios for this part is called last using this index value.customData - Custom data to attach to this scenario suite part.public static java.util.List<IlrParallelScenarioProvider.IlrScenarioSuitePart> getBalancedListOfScenarioSuiteParts(int totalNumberOfScenarios, int numberOfParts) throws IlrScenarioProviderException
IlrScenarioProviderException - if the total number of scenarios is less than 1 or if the number of parts
is more than the total number of scenarios.totalNumberOfScenarios - The total number of scenarios (must be greater than 0).numberOfParts - The number of parts to return in the list (must be lower or equal to the
total number of scenarios).public int getFirstIndex()
public int getLastIndex()
public void setCustomData(java.io.Serializable customData)
customData - The custom data to attach to this
set of scenarios.public java.io.Serializable getCustomData()
© Copyright IBM Corp. 1987, 2017