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.io.input
Class DictionaryReader

    java.lang.Object
      pf.io.input.DictionaryReader

    public class DictionaryReader

extends java.lang.Object

Field Summary
`private java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>>` | `dictionary` Variable that represents the dictionary.

Constructor Summary
`DictionaryReader(java.lang.String fileName)` Constructor of the class DictionaryReader.

Method Summary
`double` | `calculateDescriptiveSimilarity(java.lang.String keyRequest, java.lang.String keyService)` Method that calculates the Descriptive Similarity.
`java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>>` | `getDictionary()`
`void` | `setDictionary(java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> dictionary)`

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

Field Detail

### dictionary

    private java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> dictionary

  Variable that represents the dictionary.

Constructor Detail

### DictionaryReader

    public DictionaryReader(java.lang.String fileName)

  Constructor of the class DictionaryReader.

  Parameters:
    `fileName` - - Name of the file that denotes the dictionary.

Method Detail

### calculateDescriptiveSimilarity

    public double calculateDescriptiveSimilarity(java.lang.String keyRequest,
                                                 java.lang.String keyService)

  Method that calculates the Descriptive Similarity.

  Parameters:
    `keyRequest` - - Key from Request.
    `keyService` - - Key from Service.
  Returns:
    - Return the degree of descriptive similarity.

### getDictionary

    public java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> getDictionary()

  Returns:
    the dictionary

### setDictionary

    public void setDictionary(java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> dictionary)

  Parameters:
    `dictionary` - the dictionary 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