Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| MaltParser 1.5
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.maltparser.parser.history.kbest
Class Candidate

    java.lang.Object
      org.maltparser.parser.history.kbest.Candidate

Direct Known Subclasses:
  ScoredCandidate

    public class Candidate

extends Object

A candidate in the k-best list.

Author:
  Johan Hall

Field Summary
`protected int` | `actionCode` The integer representation of the predicted action

Constructor Summary
`Candidate()` Constructs a candidate object

Method Summary
`boolean` | `equals(Object obj)`
`int` | `getActionCode()` Returns an integer representation of the predicted action
`int` | `hashCode()`
`void` | `reset()` Resets the candidate object
`void` | `setActionCode(int actionCode)` Sets the integer representation of the predicted action
`String` | `toString()`

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

Field Detail

### actionCode

    protected int actionCode

  The integer representation of the predicted action

Constructor Detail

### Candidate

    public Candidate()

  Constructs a candidate object

Method Detail

### getActionCode

    public int getActionCode()

  Returns an integer representation of the predicted action

  Returns:
    an integer representation of the predicted action

### setActionCode

    public void setActionCode(int actionCode)

  Sets the integer representation of the predicted action

  Parameters:
    `actionCode` - an integer representation of the predicted action

### reset

    public void reset()

  Resets the candidate object

### hashCode

    public int hashCode()

  Overrides:
    `hashCode` in class `Object`

### equals

    public boolean equals(Object obj)

  Overrides:
    `equals` in class `Object`

### toString

    public String toString()

  Overrides:
    `toString` in class `Object`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| MaltParser 1.5
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright 2007-2011 Johan Hall, Jens Nilsson and Joakim Nivre.