|
||||||||||
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.OSeLWriter
public class OSeLWriter
The OSeLWriter
class is used to construct an instance that follows
the OSeL format.
Field Summary |
---|
Fields inherited from class org.optimizationservices.oscommon.representationparser.OSgLWriter |
---|
m_document |
Constructor Summary | |
---|---|
OSeLWriter()
constructor. |
Method Summary | |
---|---|
boolean |
addOtherEntityInfo(java.lang.String name,
java.lang.String value,
java.lang.String description)
Add an other entity info element. |
static void |
main(java.lang.String[] argv)
main for test purposes. |
boolean |
setAccessLimits(AccessLimits accessLimits)
Set the access limit information of the service entity. |
boolean |
setDefaultOptionNamesAndValues(OSOption osOption)
Set the default option names and values in the standard OSOption structure which is specified by the OSoL schema. |
boolean |
setKeyWords(java.lang.String[] keyWords)
Set the key words of the service. |
boolean |
setLicenseRequired(boolean licenseRequired)
Set whether the license is reqired of the service or not. |
boolean |
setLinks(Link[] links)
Set the links of the service. |
boolean |
setMessage(java.lang.String message)
Set the message. |
boolean |
setOptimizationConstraintDifferentiability(java.lang.String constraintDifferentiability)
Set the optimization constraint differentiability. |
boolean |
setOptimizationConstraintLinearity(java.lang.String constraintLinearity)
Set the optimization constraint linearity. |
boolean |
setOptimizationConstraintType(java.lang.String constraintType)
Set the optimization constraint type. |
boolean |
setOptimizationDescription(java.lang.String description)
Set the optimization description. |
boolean |
setOptimizationFunctionType(FunctionType functionType)
Set the function types that the service supports. |
boolean |
setOptimizationObjectiveDifferentiability(java.lang.String objectiveDifferentiability)
Set the optimization objective differentiability. |
boolean |
setOptimizationObjectiveLinearity(java.lang.String objectiveLinearity)
Set the optimization objective linearity. |
boolean |
setOptimizationObjectiveType(java.lang.String objectiveType)
Set the optimization objective type. |
boolean |
setOptimizationParameterType(java.lang.String parameterType)
Set the optimization parameter type. |
boolean |
setOptimizationRealTime(boolean realTime)
Set whether the service supports real time optimization or not. |
boolean |
setOptimizationSpecialAlgorithm(SpecialAlgorithm specialAlgorithm)
Set the special algorithms that the service supports. |
boolean |
setOptimizationSpecialStructure(SpecialStructure specialStructure)
Set the special structures that the service supports. |
boolean |
setOptimizationStochasticity(java.lang.String stochasticity)
Set the optimization stochasticity. |
boolean |
setOptimizationVariableType(java.lang.String variableType)
Set the optimization variable type. |
boolean |
setOSEntity(OSEntity osEntity)
set the OSEntity, a standard os entity interface. |
boolean |
setOtherEntityInfo(java.lang.String[] names,
java.lang.String[] values,
java.lang.String[] descriptions)
Set the other entity info related elements. |
boolean |
setOwner(Owner owner)
Set the owner information of the service entity. |
boolean |
setPasswordRequired(boolean passwordRequired)
Set whether the password is reqired of the service or not. |
boolean |
setRegistrationDate(java.util.GregorianCalendar date)
Set time of the registration date. |
boolean |
setServiceAlgorithmDescription(java.lang.String algorithmDescription)
Set the algorithm description. |
boolean |
setServiceCategory(java.lang.String category)
Set the service category. |
boolean |
setServiceDescription(java.lang.String description)
Set the service description. |
boolean |
setServiceLogoImageLink(java.lang.String logoImageLink)
Set the service logo image link. |
boolean |
setServiceName(java.lang.String serviceName)
Set service name. |
boolean |
setServiceSoftwareDescription(java.lang.String softwareDescription)
Set the service software description. |
boolean |
setServiceType(java.lang.String type)
Set the service type. |
boolean |
setServiceURI(java.lang.String serviceURI)
Set service uri. |
boolean |
setServiceWebPage(java.lang.String webPage)
Set the service web page. |
boolean |
setServiceWSDLLocation(java.lang.String wsdlLocation)
Set the service wsdl location. |
boolean |
setSystemDedication(double dedication)
Set the system dedication. |
boolean |
setSystemDescription(java.lang.String description)
Set the system description. |
boolean |
setSystemHardwareInfo(HardwareInfo hardwareInfo)
Set the system hardware information. |
boolean |
setUserNameRequired(boolean userNameRequired)
Set whether the user name is reqired of the service or not. |
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 OSeLWriter()
Method Detail |
---|
public boolean setOSEntity(OSEntity osEntity) throws java.lang.Exception
osEntity
- holds the standard os entity interface.
java.lang.Exception
- if there are errors setting the OSEntity.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 setRegistrationDate(java.util.GregorianCalendar date)
date
- holds the registration date.
public boolean setMessage(java.lang.String message)
message
- holds the message.
public boolean setLicenseRequired(boolean licenseRequired)
licenseRequired
- holds whether the license is reqired of the service or not.
public boolean setUserNameRequired(boolean userNameRequired)
userNameRequired
- holds whether the user name is reqired of the service or not.
public boolean setPasswordRequired(boolean passwordRequired)
passwordRequired
- holds whether the password is reqired of the service or not.
public boolean setAccessLimits(AccessLimits accessLimits)
accessLimits
- holds the access limit information.
public boolean setOwner(Owner owner)
owner
- holds the service owner.
public boolean setKeyWords(java.lang.String[] keyWords)
keyWords
- holds the service key words.
public boolean setLinks(Link[] links)
links
- holds a Link array of the service links.
public boolean setSystemDescription(java.lang.String description)
description
- holds the system description.
public boolean setSystemDedication(double dedication)
dedication
- holds the system dedication, a double between 0 and 1 with 1 being fully dedicated.
public boolean setSystemHardwareInfo(HardwareInfo hardwareInfo)
hardwareInfo
- holds the system hardware information.
public boolean setServiceDescription(java.lang.String description)
description
- holds the service description.
public boolean setServiceType(java.lang.String type)
type
- holds the service type, which can be:
solver, analyzer, scheduler, simulation, registry, modeler, agent
public boolean setServiceCategory(java.lang.String category)
category
- holds the service category, which can be:
education, government, organization, company, military, personal, other
public boolean setServiceSoftwareDescription(java.lang.String softwareDescription)
softwareDescription
- holds the software description.
public boolean setServiceAlgorithmDescription(java.lang.String algorithmDescription)
algorithmDescription
- holds the algorithm description.
public boolean setServiceWebPage(java.lang.String webPage)
webPage
- holds the service web page.
public boolean setServiceWSDLLocation(java.lang.String wsdlLocation)
wsdlLocation
- holds the service wsdl location.
public boolean setServiceLogoImageLink(java.lang.String logoImageLink)
logoImageLink
- holds the service logo image link.
public boolean setDefaultOptionNamesAndValues(OSOption osOption)
osOption
- holds the default option names and values in the standard OSOption structure.
public boolean setOptimizationDescription(java.lang.String description)
description
- holds the optimization description.
public boolean setOptimizationVariableType(java.lang.String variableType)
variableType
- holds the optimization variable type, which can be:
continuous, pureBinary, mixedBinary, pureInteger, mixedInteger, discrete
public boolean setOptimizationObjectiveType(java.lang.String objectiveType)
objectiveType
- holds the optimization objective type, which can be:
none, singleObjective, multiObjectives
public boolean setOptimizationConstraintType(java.lang.String constraintType)
constraintType
- holds the optimization constraint type, which can be:
generalRange, pureEquality, pureBound,
pureLinearComplementarity, pureNonlinearComplementarity,
linearMixedComplementarity, nonlinearMixedComplementarity, generalMixedComplementarity,
pureCone, mixedCone.
public boolean setOptimizationObjectiveLinearity(java.lang.String objectiveLinearity)
objectiveLinearity
- holds the optimization objective linearity, which can be:
none, linearNetwork, linear sumOfSquares, convexQuadratic, convexNonlinear, generalQuadratic, generalNonlinear
public boolean setOptimizationConstraintLinearity(java.lang.String constraintLinearity)
constraintLinearity
- holds the optimization constraint linearity, which can be:
none, bound, linearNetwork, linear, convexQuadratic, convexNonlinear, generalQuadratic, generalNonlinear
public boolean setOptimizationObjectiveDifferentiability(java.lang.String objectiveDifferentiability)
objectiveDifferentiability
- holds the optimization objective differentiability, which can be:
generallyDifferentiable, twiceDifferentiable, firstDifferentiable,
nonDifferentiableContinous, nonContinuous, simulation.
public boolean setOptimizationConstraintDifferentiability(java.lang.String constraintDifferentiability)
constraintDifferentiability
- holds the optimization constraint differentiability, which can be:
generallyDifferentiable, twiceDifferentiable, firstDifferentiable,
nonDifferentiableContinous, nonContinuous, simulation.
public boolean setOptimizationParameterType(java.lang.String parameterType)
parameterType
- holds the optimization parameter type, which can be:
number, string, both
public boolean setOptimizationStochasticity(java.lang.String stochasticity)
tochasticity
- holds the optimization stochasticity, which can be:
deterministic, stochastic, both
public boolean setOptimizationRealTime(boolean realTime)
realTime
- holds whether the service supports real time optimization or not.
public boolean setOptimizationFunctionType(FunctionType functionType)
functionType
- holds the function types that the service supports.
public boolean setOptimizationSpecialStructure(SpecialStructure specialStructure)
specialStructure
- holds the special structures that the service supports.
public boolean setOptimizationSpecialAlgorithm(SpecialAlgorithm specialAlgorithm)
specialAlgorithm
- holds the special algorithms that the service supports.
public boolean setOtherEntityInfo(java.lang.String[] names, java.lang.String[] values, java.lang.String[] descriptions)
names
- holds the names of the other entity info. It is required.values
- holds the values of the other entity info, empty String "" if no value for an entity info.descriptions
- holds the descriptions of other entity info, empty String "" if no value for an entity description, null for
the entire array if none of the other entity info have descriptions.
public boolean addOtherEntityInfo(java.lang.String name, java.lang.String value, java.lang.String description)
name
- holds the name of the other entity info element. It is required.value
- holds the value of the other entity info element, empty String "" if none.description
- holds the description of the other entity info 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 |