public class AdvancedQuery
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
AdvancedQuery()
Special use: information exchange over web.Should not be used for other purposes.
|
AdvancedQuery(java.util.List<OperationConstraints> operationsConstraints,
java.util.List<QualityPropertyConstraints> qualityPropertiesConstraints,
java.lang.String RQs)
Creates a complete AdvancedQuery object.
|
Modifier and Type | Method and Description |
---|---|
void |
checkWellFormedNess()
Checks whether the AdvancedQuery object is well-formed or not.
|
java.util.List<java.lang.String> |
getOperationNames()
Returns a list of names of service operations.
|
java.util.List<OperationConstraints> |
getOperationsConstraints()
Special use: information exchange over web.Should not be used for other purposes.
|
java.util.List<QualityPropertyConstraints> |
getQualityPropertiesConstraints()
Special use: information exchange over web.Should not be used for other purposes.
|
java.lang.String |
getRQs()
Special use: information exchange over web.Should not be used for other purposes.
|
void |
setOperationsConstraints(java.util.List<OperationConstraints> operationsConstraints)
Special use: information exchange over web.Should not be used for other purposes.
|
void |
setQualityPropertiesConstraints(java.util.List<QualityPropertyConstraints> qualityPropertiesConstraints)
Special use: information exchange over web.Should not be used for other purposes.
|
void |
setRQs(java.lang.String RQs)
Special use: information exchange over web.Should not be used for other purposes.
|
public AdvancedQuery(java.util.List<OperationConstraints> operationsConstraints, java.util.List<QualityPropertyConstraints> qualityPropertiesConstraints, java.lang.String RQs)
checkWellFormedNess()
operationsConstraints
- Functional constraints (concerning service operations).qualityPropertiesConstraints
- Non-functional constraints (concerning quality properties of services).RQs
- Requirements of dependencies on other services.
Requirements are separated by commas.public AdvancedQuery()
public java.util.List<java.lang.String> getOperationNames()
public void setOperationsConstraints(java.util.List<OperationConstraints> operationsConstraints)
operationsConstraints
- A list of functional constraints.public void setQualityPropertiesConstraints(java.util.List<QualityPropertyConstraints> qualityPropertiesConstraints)
qualityPropertiesConstraints
- A list of functional constraints.public void setRQs(java.lang.String RQs)
RQs
- Requirements of dependencies on other services.public java.util.List<OperationConstraints> getOperationsConstraints()
public java.util.List<QualityPropertyConstraints> getQualityPropertiesConstraints()
public java.lang.String getRQs()
public void checkWellFormedNess() throws QueryEngineFacadeException
Checks whether the AdvancedQuery object is well-formed or not. If the AdvancedQuery object is not well-formed, an exception is thrown. Well-formedness rules: List<OperationConstraints
> operationsConstraints: Must not be null or empty.An operationsConstraints list item, say opConstr, must not be null. opConstr.name must not be null. For opConstr.inParamNames and opConstr.inParamTypes the following must hold: it is ok to be both null, but if not, they must not be empty and must be of the same size.Additionally, items in relative positions in the two lists are thought to be related under name-type relation, and they must not be both null. The same must hold for opConstr.outParamNames and opConstr.outParamTypes. List<QualityPropertyConstraints
> qualityPropertiesConstraints: It is ok to be null.A qualityPropertiesConstraints item, say qualityPropertyConstraints, must not be null. qualityPropertyConstraints.name must not be null. Either qualityPropertyConstraints.valueDescription or qualityPropertyConstraints.valueFrom and qualityPropertyConstraints.valueTo must be specified, and, if qualityPropertyConstraints.valueDescription is specified, it must not be null.
QueryEngineFacadeException
- If the AdvancedQuery object is not well-formed.