public final class CreateStrategyParameters extends Object implements Serializable
| Constructor and Description |
|---|
CreateStrategyParameters(String inInstanceName,
String inStrategyName,
String inLanguage,
File inStrategySource,
String inParameters,
boolean inRouteOrdersToServer)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getInstanceName()
Returns the strategy instance name.
|
String |
getLanguage()
Returns the strategy language.
|
String |
getParameters()
Returns the strategy parameters.
|
String |
getStrategyName()
Returns the strategy class name.
|
InputStream |
getStrategySource()
Returns the input stream from which the strategy script file can be read.
|
boolean |
isRouteOrdersToServer()
Returns true if the strategy should route its orders to the server.
|
String |
toString() |
public CreateStrategyParameters(String inInstanceName, String inStrategyName, String inLanguage, File inStrategySource, String inParameters, boolean inRouteOrdersToServer) throws FileNotFoundException
inInstanceName - the strategy instance name. Can be null.inStrategyName - the strategy class name. Cannot be null.inLanguage - the strategy language. Cannot be null.inStrategySource - the file containing the strategy source. Cannot be null.inParameters - the strategy parameters as a list of ':' separated,
name=value pairs. Can be null.inRouteOrdersToServer - if the strategy should route its orders
to the server.NullPointerException - if any of the non-null field values are null.FileNotFoundException - if the inStrategySource file
does not exist or if it cannot be read.public String getInstanceName()
public String getStrategyName()
public String getLanguage()
public InputStream getStrategySource() throws IOException
The input stream should be closed once the script has been read to release the resources.
IOException - if there were errors getting the input stream.public String getParameters()
The parameters are specified as ':' separated list of name=value pairs.
public boolean isRouteOrdersToServer()
Copyright © 2017. All Rights Reserved.