Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## pf.enigne.implementations.functional
Class FunctionalEngine

    java.lang.Object
      pf.enigne.implementations.functional.FunctionalEngine

All Implemented Interfaces:
  IEngine

    public class FunctionalEngine

extends java.lang.Object
implements IEngine

Class that classify the result of the match, it specific how functional the request and the service are based on the filters described in the Matcher.

Field Summary
`(package private) java.lang.String[]` | `filter` Element that contains the value to be shown in the GUI.
`(package private) FunctionalMatcher` | `functionalMatcher` A FunctionalMatcher object.
`(package private) InputManager` | `inputManager` An InputManager object.
`(package private) java.util.ArrayList<SimilarityDegree>` | `resultInputs` Array of correspondences of the input parameters.
`(package private) java.util.ArrayList<SimilarityDegree>` | `resultOutputs` Array of correspondences of the output parameters.

Constructor Summary
`FunctionalEngine(java.lang.String[] args, java.lang.String[] filter)` Constructor default of the class.

Method Summary
`void` | `classifyResults(Service service, Query request)` Method that classifies the obtained results.
`java.util.ArrayList<SimilarityDegree>` | `getResultInputs()`
`java.util.ArrayList<SimilarityDegree>` | `getResultOutputs()`
`private boolean` | `isFiltered(java.lang.String filter)` Method that returns if the filter has to be shown.
`void` | `removeDualCorrespondences(java.util.ArrayList<SimilarityDegree> result, char parameters)` Method that removes dual correspondences of parameters in the match.
`private double` | `returnLevelMatching(java.util.ArrayList<SimilarityDegree> resultInput, java.util.ArrayList<SimilarityDegree> resultOutput)` Method that return the smallest degree of match between input and output parameters.
`void` | `setResultInputs(java.util.ArrayList<SimilarityDegree> resultInputs)`
`void` | `setResultOutputs(java.util.ArrayList<SimilarityDegree> resultOutputs)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### resultInputs

    java.util.ArrayList<SimilarityDegree> resultInputs

  Array of correspondences of the input parameters.

### resultOutputs

    java.util.ArrayList<SimilarityDegree> resultOutputs

  Array of correspondences of the output parameters.

### filter

    java.lang.String[] filter

  Element that contains the value to be shown in the GUI.

### inputManager

    InputManager inputManager

  An InputManager object.

### functionalMatcher

    FunctionalMatcher functionalMatcher

  A FunctionalMatcher object.

Constructor Detail

### FunctionalEngine

    public FunctionalEngine(java.lang.String[] args,
                            java.lang.String[] filter)

  Constructor default of the class.

  Parameters:
    `args` - - An array of arguments.

Method Detail

### isFiltered

    private boolean isFiltered(java.lang.String filter)

  Method that returns if the filter has to be shown.

  Parameters:
    `filter` - - Filter that has to be searched in the vector.
  Returns:
    Return true if it's present and false it isn't present.

### classifyResults

    public void classifyResults(Service service,
                                Query request)

  Method that classifies the obtained results.

  Specified by:
    `classifyResults` in interface `IEngine`
  Parameters:
    `services` - - A service
    `request` - - A request

### removeDualCorrespondences

    public void removeDualCorrespondences(java.util.ArrayList<SimilarityDegree> result,
                                          char parameters)

  Method that removes dual correspondences of parameters in the match.

  Parameters:
    `result` - - An ArrayList of correspondences.

### returnLevelMatching

    private double returnLevelMatching(java.util.ArrayList<SimilarityDegree> resultInput,
                                       java.util.ArrayList<SimilarityDegree> resultOutput)

  Method that return the smallest degree of match between input and output parameters.

  Parameters:
    `resultInput` - - An ArrayList with correspondences of input parameters.
    `resultOutput` - - An ArrayList with correspondences of output parameters.
  Returns:
    levelMatching - Smallest degree of match.

### getResultInputs

    public java.util.ArrayList<SimilarityDegree> getResultInputs()

  Returns:
    the resultInputs.

### setResultInputs

    public void setResultInputs(java.util.ArrayList<SimilarityDegree> resultInputs)

  Parameters:
    `resultInputs` - the resultInputs to set.

### getResultOutputs

    public java.util.ArrayList<SimilarityDegree> getResultOutputs()

  Returns:
    the resultOutputs.

### setResultOutputs

    public void setResultOutputs(java.util.ArrayList<SimilarityDegree> resultOutputs)

  Parameters:
    `resultOutputs` - the resultOutputs to set.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD