|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.optimizationservices.oscommon.localinterface.OSEntity
public class OSEntity
The OSEntity
class is a local interface for storing Optimization Services
entity. Its design follows the Optimization Services entity Language (OSeL).
All the data structures in this class are standards specified in OSeL.
Field Summary | |
---|---|
EntityData |
entityData
entityData holds the second child of the OSEntity specified by the OSeL Schema. |
EntityHeader |
entityHeader
entityHeader holds the first child of the OSEntity specified by the OSeL Schema. |
Constructor Summary | |
---|---|
OSEntity()
Default constructor. |
Method Summary | |
---|---|
AccessLimits |
getAccessLimits()
Get the access limits of the service. |
OSOption |
getDefaultOptionNamesAndValues()
Get the default option names and values in the standard OSOption structure which is specified by the OSoL schema. |
java.lang.String[] |
getKeyWords()
Get the key words of the service. |
boolean |
getLicenseRequired()
Get whether the license is reqired of the service or not. |
Link[] |
getLinks()
Get the links of the service. |
java.lang.String |
getMessage()
Get the message. |
java.lang.String |
getOptimizationConstraintDifferentiability()
Get the optimization constraint differentiability, which can be: generallyDifferentiable, twiceDifferentiable, firstDifferentiable, nonDifferentiableContinous, nonContinuous, simulation. |
java.lang.String |
getOptimizationConstraintLinearity()
Get the constraint objective linearity, which can be: none, bound, linearNetwork, linear, convexQuadratic, convexNonlinear, generalQuadratic, generalNonlinear |
java.lang.String |
getOptimizationConstraintType()
Get the optimization constraint type, which can be: generalRange, pureEquality, pureBound, pureLinearComplementarity, pureNonlinearComplementarity, linearMixedComplementarity, nonlinearMixedComplementarity, generalMixedComplementarity, pureCone, mixedCone. |
java.lang.String |
getOptimizationDescription()
Get the optimization description. |
FunctionType |
getOptimizationFunctionType()
Get the function types that the service supports. |
java.lang.String |
getOptimizationObjectiveDifferentiability()
Get the optimization objective differentiability, which can be: generallyDifferentiable, twiceDifferentiable, firstDifferentiable, nonDifferentiableContinous, nonContinuous, simulation. |
java.lang.String |
getOptimizationObjectiveLinearity()
Get the optimization objective linearity, which can be: none, linearNetwork, linear, sumOfSquares, convexQuadratic, convexNonlinear, generalQuadratic, generalNonlinear |
java.lang.String |
getOptimizationObjectiveType()
Get the optimization objective type, which can be: none, singleObjective, multiObjectives |
java.lang.String |
getOptimizationParameterType()
Get the optimization parameter type, which can be: number, string, both |
boolean |
getOptimizationRealTime()
Get whether the service supports real time optimization or not. |
SpecialAlgorithm |
getOptimizationSpecialAlgorithm()
Get the special algorithms that the service supports. |
SpecialStructure |
getOptimizationSpecialStructure()
Get the special structures that the service supports. |
java.lang.String |
getOptimizationStochasticity()
Get the optimization stochasticity, which can be: deterministic, stochastic, both |
java.lang.String |
getOptimizationVariableType()
Get the optimization variable type, which can be: continuous, pureBinary, mixedBinary, pureInteger, mixedInteger, discrete. |
java.util.Hashtable<java.lang.String,java.lang.String> |
getOtherEntityInfoDescriptions()
get a hashmap of other entity info descriptions. |
java.lang.String[] |
getOtherEntityInfoNames()
get a string array of names of other entity info. |
java.util.Hashtable<java.lang.String,java.lang.String> |
getOtherEntityInfoValues()
get a hashmap of other entity info values. |
Owner |
getOwner()
Get the owner information of the service entity. |
boolean |
getPasswordRequired()
Get whether the password is reqired of the service or not. |
java.util.GregorianCalendar |
getRegistrationDate()
Get time of the registration date. |
java.lang.String |
getServiceAlgorithmDescription()
Get the service algorithm description. |
java.lang.String |
getServiceCategory()
Get the service category, which can be: education, government, organization, company, military, personal, other |
java.lang.String |
getServiceDescription()
Get the service description. |
java.lang.String |
getServiceLogoImageLink()
Get the service logo image link. |
java.lang.String |
getServiceName()
Get service name. |
java.lang.String |
getServiceSoftwareDescription()
Get the service software description. |
java.lang.String |
getServiceType()
Get the service type, which can be: solver, analyzer, scheduler, simulation, registry, modeler, agent |
java.lang.String |
getServiceURI()
Get service uri. |
java.lang.String |
getServiceWebPage()
Get the service web page. |
java.lang.String |
getServiceWSDLLocation()
Get the service wsdl location. |
double |
getSystemDedication()
Get the system dedication, a double between 0 and 1 with 1 being fully dedicated. |
java.lang.String |
getSystemDescription()
Get the system description. |
HardwareInfo |
getSystemHardwareInfo()
Get the system hardware information. |
boolean |
getUserNameRequired()
Get whether the user name is reqired of the service or not. |
static void |
main(java.lang.String[] args)
main for test purposes. |
OSEntity |
readOSeL(java.lang.String osel,
boolean isFile,
boolean validate)
read an OSeL instance and return and OSEntity object. |
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 |
setOtherEntityInfo(java.lang.String[] names,
java.lang.String[] descriptions,
java.lang.String[] values)
set other entity info, with their names (required), descriptions (optional) and values (optional). |
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. |
java.lang.String |
writeOSeL()
write the OSEntity to an osel xml string. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public EntityHeader entityHeader
public EntityData entityData
Constructor Detail |
---|
public OSEntity()
Method Detail |
---|
public OSEntity readOSeL(java.lang.String osel, boolean isFile, boolean validate) throws java.lang.Exception
osel
- holds the optimization entity in a string which format follows the
Optimization Services entity Language (OSeL) schema.isFile
- holds whether the osel string is a file name or a string that literally holds the osel contents.validate
- holds whether the reader should be validating against the schema or not.
java.lang.Exception
- if there are errors in reading the string or setting the OSEntity.public java.lang.String writeOSeL() throws java.lang.Exception
java.lang.Exception
- if there are errors in writing the osel string.public java.lang.String getServiceName()
public boolean setServiceName(java.lang.String serviceName)
serviceName
- holds the name of the service.
public java.lang.String getServiceURI()
public boolean setServiceURI(java.lang.String serviceURI)
serviceURI
- holds the uri of the service.
public java.util.GregorianCalendar getRegistrationDate()
public boolean setRegistrationDate(java.util.GregorianCalendar date)
date
- holds the registration date.
public java.lang.String getMessage()
public boolean setMessage(java.lang.String message)
message
- holds the message.
public boolean getLicenseRequired()
public boolean setLicenseRequired(boolean licenseRequired)
licenseRequired
- holds whether the license is reqired of the service or not.
public boolean getUserNameRequired()
public boolean setUserNameRequired(boolean userNameRequired)
userNameRequired
- holds whether the user name is reqired of the service or not.
public boolean getPasswordRequired()
public boolean setPasswordRequired(boolean passwordRequired)
passwordRequired
- holds whether the password is reqired of the service or not.
public AccessLimits getAccessLimits()
public boolean setAccessLimits(AccessLimits accessLimits)
accessLimits
- holds the access limit information.
public Owner getOwner()
public boolean setOwner(Owner owner)
owner
- holds the service owner.
public java.lang.String[] getKeyWords()
public boolean setKeyWords(java.lang.String[] keyWords)
keyWords
- holds the service key words.
public Link[] getLinks()
public boolean setLinks(Link[] links)
links
- holds a Link array of the service links.
public java.lang.String getSystemDescription()
public boolean setSystemDescription(java.lang.String description)
description
- holds the system description.
public double getSystemDedication()
public boolean setSystemDedication(double dedication)
dedication
- holds the system dedication, a double between 0 and 1 with 1 being fully dedicated.
public HardwareInfo getSystemHardwareInfo()
public boolean setSystemHardwareInfo(HardwareInfo hardwareInfo)
hardwareInfo
- holds the system hardware information.
public java.lang.String getServiceDescription()
public boolean setServiceDescription(java.lang.String description)
description
- holds the service description.
public java.lang.String getServiceType()
public boolean setServiceType(java.lang.String type)
type
- holds the service type, which can be:
solver, analyzer, scheduler, simulation, registry, modeler, agent
public java.lang.String getServiceCategory()
public boolean setServiceCategory(java.lang.String category)
category
- holds the service category, which can be:
education, government, organization, company, military, personal, other
public java.lang.String getServiceSoftwareDescription()
public boolean setServiceSoftwareDescription(java.lang.String softwareDescription)
softwareDescription
- holds the software description.
public java.lang.String getServiceAlgorithmDescription()
public boolean setServiceAlgorithmDescription(java.lang.String algorithmDescription)
algorithmDescription
- holds the algorithm description.
public java.lang.String getServiceWebPage()
public boolean setServiceWebPage(java.lang.String webPage)
webPage
- holds the service web page.
public java.lang.String getServiceWSDLLocation()
public boolean setServiceWSDLLocation(java.lang.String wsdlLocation)
wsdlLocation
- holds the service wsdl location.
public java.lang.String getServiceLogoImageLink()
public boolean setServiceLogoImageLink(java.lang.String logoImageLink)
logoImageLink
- holds the service logo image link.
public OSOption getDefaultOptionNamesAndValues()
public boolean setDefaultOptionNamesAndValues(OSOption osOption)
osOption
- holds the default option names and values in the standard OSOption structure.
public java.lang.String getOptimizationDescription()
public boolean setOptimizationDescription(java.lang.String description)
description
- holds the optimization description.
public java.lang.String getOptimizationVariableType()
public boolean setOptimizationVariableType(java.lang.String variableType)
variableType
- holds the optimization variable type, which can be:
continuous, pureBinary, mixedBinary, pureInteger, mixedInteger, discrete
public java.lang.String getOptimizationObjectiveType()
public boolean setOptimizationObjectiveType(java.lang.String objectiveType)
objectiveType
- holds the optimization objective type, which can be:
none, singleObjective, multiObjectives
public java.lang.String getOptimizationConstraintType()
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 java.lang.String getOptimizationObjectiveLinearity()
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 java.lang.String getOptimizationConstraintLinearity()
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 java.lang.String getOptimizationObjectiveDifferentiability()
public boolean setOptimizationObjectiveDifferentiability(java.lang.String objectiveDifferentiability)
objectiveDifferentiability
- holds the optimization objective differentiability, which can be:
generallyDifferentiable, twiceDifferentiable, firstDifferentiable,
nonDifferentiableContinous, nonContinuous, simulation.
public java.lang.String getOptimizationConstraintDifferentiability()
public boolean setOptimizationConstraintDifferentiability(java.lang.String constraintDifferentiability)
constraintDifferentiability
- holds the optimization constraint differentiability, which can be:
generallyDifferentiable, twiceDifferentiable, firstDifferentiable,
nonDifferentiableContinous, nonContinuous, simulation.
public java.lang.String getOptimizationParameterType()
public boolean setOptimizationParameterType(java.lang.String parameterType)
parameterType
- holds the optimization parameter type, which can be:
number, string, both
public java.lang.String getOptimizationStochasticity()
public boolean setOptimizationStochasticity(java.lang.String stochasticity)
tochasticity
- holds the optimization stochasticity, which can be:
deterministic, stochastic, both
public boolean getOptimizationRealTime()
public boolean setOptimizationRealTime(boolean realTime)
realTime
- holds whether the service supports real time optimization or not.
public FunctionType getOptimizationFunctionType()
public boolean setOptimizationFunctionType(FunctionType functionType)
functionType
- holds the function types that the service supports.
public SpecialStructure getOptimizationSpecialStructure()
public boolean setOptimizationSpecialStructure(SpecialStructure specialStructure)
specialStructure
- holds the special structures that the service supports.
public SpecialAlgorithm getOptimizationSpecialAlgorithm()
public boolean setOptimizationSpecialAlgorithm(SpecialAlgorithm specialAlgorithm)
specialAlgorithm
- holds the special algorithms that the service supports.
public java.lang.String[] getOtherEntityInfoNames()
public java.util.Hashtable<java.lang.String,java.lang.String> getOtherEntityInfoDescriptions()
public java.util.Hashtable<java.lang.String,java.lang.String> getOtherEntityInfoValues()
public boolean setOtherEntityInfo(java.lang.String[] names, java.lang.String[] descriptions, java.lang.String[] values)
names
- holds the names of the other entity info; it is required.descriptions
- holds the descriptions of the other entity info; null if none.values
- holds the values of the other entity info; null if none.
public static void main(java.lang.String[] args)
argv
- command line arguments.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |