|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.optimizationservices.oscommon.representationparser.OSgLWriter
org.optimizationservices.oscommon.representationparser.OSoLWriter
public class OSoLWriter
The OSoLWriter
class is used to construct an instance that follows
the OSoL format.
Field Summary |
---|
Fields inherited from class org.optimizationservices.oscommon.representationparser.OSgLWriter |
---|
m_document |
Constructor Summary | |
---|---|
OSoLWriter()
constructor. |
Method Summary | |
---|---|
boolean |
addOtherOption(java.lang.String name,
java.lang.String value,
java.lang.String description)
Add an other option element. |
static void |
main(java.lang.String[] argv)
main for test purposes. |
boolean |
setConstraintNumber(int constraintNumber)
Set the constraint number. |
boolean |
setContactAddress(java.lang.String address)
Set the contact address to respond to the requester. |
boolean |
setContactTransportType(java.lang.String transportType)
Set the contact transport type to respond to the requester, smtp (for email), osp (for knocking back on the requester), etc. |
boolean |
setDirectoriesToDelete(java.lang.String[] paths)
Set the directories to delete after running the job, which is a string array of paths. |
boolean |
setDirectoriesToMake(java.lang.String[] paths)
Set the directories to make before running the job, which is a string array of paths. |
boolean |
setFilesToCreate(java.lang.String[] paths)
Set the files to create before running the job, which is a string array of paths. |
boolean |
setFilesToDelete(java.lang.String[] paths)
Set the files to delete after running the job, which is a string array of paths. |
boolean |
setInitialVariableValues(double[] initialVariableValues)
Set initial variable values (double[]). |
boolean |
setInputFilesToCopyFrom(java.lang.String[] paths)
Set the input files to copy from before running the job, which is a string array of paths. |
boolean |
setInputFilesToCopyTo(java.lang.String[] paths)
Set the input files to copy to before running the job, which is a string array of paths. |
boolean |
setInputFilesToMoveFrom(java.lang.String[] paths)
Set the input files to move from before running the job, which is a string array of paths. |
boolean |
setInputFilesToMoveTo(java.lang.String[] paths)
Set the input files to move to before running the job, which is a string array of paths. |
boolean |
setInstanceAddress(java.lang.String address)
Set the instance address to get the instance. |
boolean |
setInstanceLocationType(java.lang.String locationType)
Set the instance location type to get the instance. |
boolean |
setInstanceName(java.lang.String instanceName)
Set instance name. |
boolean |
setJobDependencies(java.lang.String[] jobIDs)
Get the dependencies of the current job, which is a string array of ids of the jobs that have run before the current job. |
boolean |
setJobID(java.lang.String jobID)
Set jobID. |
boolean |
setJobMaxTime(double maxTime)
Set the maximum time before the job is terminated. |
boolean |
setJobScheduledStartTime(java.util.GregorianCalendar scheduledStartTime)
Set the scheduled start time for the job. |
boolean |
setLicense(java.lang.String license)
Set license. |
boolean |
setObjectiveNumber(int objectiveNumber)
Set the objective number. |
boolean |
setOSOption(OSOption osOption)
set the OSOption, a standard os option interface. |
boolean |
setOtherOptions(java.lang.String[] names,
java.lang.String[] values,
java.lang.String[] descriptions)
Set the other options related elements. |
boolean |
setOutputFilesToCopyFrom(java.lang.String[] paths)
Set the output files to copy from before running the job, which is a string array of paths. |
boolean |
setOutputFilesToCopyTo(java.lang.String[] paths)
Set the output files to copy to before running the job, which is a string array of paths. |
boolean |
setOutputFilesToMoveFrom(java.lang.String[] paths)
Set the output files to move from before running the job, which is a string array of paths. |
boolean |
setOutputFilesToMoveTo(java.lang.String[] paths)
Set the output files to move to before running the job, which is a string array of paths. |
boolean |
setPassword(java.lang.String password)
Set the password. |
boolean |
setProcessesToKill(java.lang.String[] processNames)
Set the processes to kill after running the job, which is a string array of paths. |
boolean |
setRequiredDirectoriesAndFiles(java.lang.String[] paths)
Set the required directories and files to run the job, which is a string array of paths. |
boolean |
setServiceName(java.lang.String serviceName)
Set service name. |
boolean |
setServiceType(java.lang.String type)
Set the service type. |
boolean |
setServiceURI(java.lang.String serviceURI)
Set service uri. |
boolean |
setSystemMinCPUSpeed(double minCPUSpeed)
Set the the system minimum cpu speed required to solve the job. |
boolean |
setSystemMinDiskSpace(double minDiskSpace)
Set the the system minimum disk space required to solve the job. |
boolean |
setSystemMinMemorySize(double minMemorySize)
Set the the system minimum memory size required to solve the job. |
boolean |
setUserName(java.lang.String userName)
Set the user name. |
boolean |
setVariableNumber(int variableNumber)
Set the variable number. |
Methods inherited from class org.optimizationservices.oscommon.representationparser.OSgLWriter |
---|
getDocument, setDocument, writeToFile, writeToSring, writeToStandardOutput |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OSoLWriter()
Method Detail |
---|
public boolean setOSOption(OSOption osOption) throws java.lang.Exception
osOption
- holds the standard os option interface.
java.lang.Exception
public boolean setServiceURI(java.lang.String serviceURI)
serviceURI
- holds the uri of the service.
public boolean setServiceName(java.lang.String serviceName)
serviceName
- holds the name of the service.
public boolean setInstanceName(java.lang.String instanceName)
instanceName
- holds the name of the instance.
public boolean setInstanceLocationType(java.lang.String locationType)
locationType
- holds the instance location type, e.g. local, http, ftp.
public boolean setInstanceAddress(java.lang.String address)
address
- holds the instance address.
public boolean setJobID(java.lang.String jobID)
jobID
- holds the jobID.
public boolean setLicense(java.lang.String license)
license
- holds the license required by the service.
public boolean setUserName(java.lang.String userName)
userName
- holds the user name required by the service.
public boolean setPassword(java.lang.String password)
password
- holds the password required by the service.
public boolean setContactTransportType(java.lang.String transportType)
transportType
- holds the contact transport type.
public boolean setContactAddress(java.lang.String address)
address
- holds the contact address.
public boolean setSystemMinDiskSpace(double minDiskSpace)
minDiskSpace
- holds the minimum disk space required to solve the job.
public boolean setSystemMinMemorySize(double minMemorySize)
minMemorySize
- holds the minimum memory size required to solve the job.
public boolean setSystemMinCPUSpeed(double minCPUSpeed)
minCPUSpeed
- holds the minimum cpu speed required to solve the job.
public boolean setServiceType(java.lang.String type)
type
- holds the service type, which can be:
solver, analyzer, scheduler, simulation, registry, modeler, agent
public boolean setJobMaxTime(double maxTime)
maxTime
- holds the maximum time in seconds.
public boolean setJobScheduledStartTime(java.util.GregorianCalendar scheduledStartTime)
scheduledStartTime
- holds the scheduled start time for the job.
public boolean setJobDependencies(java.lang.String[] jobIDs)
jobIDs
- holds a string array of ids of the jobs that have run before the current job.
public boolean setRequiredDirectoriesAndFiles(java.lang.String[] paths)
paths
- holds a string array of directory/file paths required to run the job.
public boolean setDirectoriesToMake(java.lang.String[] paths)
paths
- holds a string array of directories to make before running the job.
public boolean setFilesToCreate(java.lang.String[] paths)
paths
- holds a string array of files to create before running the job.
public boolean setInputFilesToCopyFrom(java.lang.String[] paths)
paths
- holds a string array of input files to copy from before running the job.
public boolean setInputFilesToCopyTo(java.lang.String[] paths)
paths
- holds a string array of input files to copy to before running the job.
public boolean setInputFilesToMoveFrom(java.lang.String[] paths)
paths
- holds a string array of input files to move from before running the job.
public boolean setInputFilesToMoveTo(java.lang.String[] paths)
paths
- holds a string array of input files to move to before running the job.
public boolean setOutputFilesToCopyFrom(java.lang.String[] paths)
paths
- holds a string array of output files to copy from before running the job.
public boolean setOutputFilesToCopyTo(java.lang.String[] paths)
paths
- holds a string array of output files to copy to before running the job.
public boolean setOutputFilesToMoveFrom(java.lang.String[] paths)
paths
- holds a string array of output files to move from before running the job.
public boolean setOutputFilesToMoveTo(java.lang.String[] paths)
paths
- holds a string array of output files to move to before running the job.
public boolean setFilesToDelete(java.lang.String[] paths)
paths
- holds a string array of file paths to delete after running the job.
public boolean setDirectoriesToDelete(java.lang.String[] paths)
paths
- holds a string array of directory paths to delete after running the job.
public boolean setProcessesToKill(java.lang.String[] processNames)
processNames
- holds a string array of process names to kill after running the job.
public boolean setVariableNumber(int variableNumber)
variableNumber
- holds the number of variables
public boolean setObjectiveNumber(int objectiveNumber)
objectiveNumber
- holds the number of objectives
public boolean setConstraintNumber(int constraintNumber)
constraintNumber
- holds the number of constraints
public boolean setInitialVariableValues(double[] initialVariableValues)
initialVariableValues
- holds a double array of initial variable values.
public boolean setOtherOptions(java.lang.String[] names, java.lang.String[] values, java.lang.String[] descriptions)
names
- holds the names of the other options. It is required.values
- holds the values of the other options, empty string "" if no value for an option.descriptions
- holds the descriptions of the other options, empty string "" if no value for an option, null for
the entire array if none of the options have descriptions.
public boolean addOtherOption(java.lang.String name, java.lang.String value, java.lang.String description)
name
- holds the name of the other option element. It is required.value
- holds the value of the other option element, empty string "" if none.description
- holds the description of the other option element, empty string "" if none.
public static void main(java.lang.String[] argv)
argv
- command line arguments.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |