Fido Alpha 3.2

fido.linguistic.components
Class VerbClass

java.lang.Object
  |
  +--fido.linguistic.components.VerbClass

public class VerbClass
extends java.lang.Object

Represents the actual verb in a VerbPhrase.

See Also:
VerbPhrase

Field Summary
static int ACTION
          Constant for verb type
static int FIRST_PLURAL
          Constant for verb person
static int FIRST_SINGULAR
          Constant for verb person
static int FUTURE
          Constant for verb tense
static int FUTURE_PERFECT
          Constant for verb tense
static int LINKING
          Constant for verb type
static int PAST
          Constant for verb tense
static int PAST_PERFECT
          Constant for verb tense
static int PRESENT
          Constant for verb tense
static int SECOND_PLURAL
          Constant for verb person
static int SECOND_SINGULAR
          Constant for verb person
static int THIRD_PLURAL
          Constant for verb person
static int THIRD_SINGULAR
          Constant for verb person
 
Constructor Summary
VerbClass(java.lang.String verb, int type, int tense, int person)
          Creates a new VerbClass object.
 
Method Summary
 int getPerson()
          Returns the person of verb, as in first, second, or third.
 int getTense()
          Returns the tense of verb, as in past, present, or future.
 int getType()
          Returns the type of verb, either ACTION or LINKING.
 java.lang.String toString()
          Returns the string for this verb.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ACTION

public static final int ACTION
Constant for verb type

See Also:
Constant Field Values

LINKING

public static final int LINKING
Constant for verb type

See Also:
Constant Field Values

PRESENT

public static final int PRESENT
Constant for verb tense

See Also:
Constant Field Values

PAST

public static final int PAST
Constant for verb tense

See Also:
Constant Field Values

PAST_PERFECT

public static final int PAST_PERFECT
Constant for verb tense

See Also:
Constant Field Values

FUTURE

public static final int FUTURE
Constant for verb tense

See Also:
Constant Field Values

FUTURE_PERFECT

public static final int FUTURE_PERFECT
Constant for verb tense

See Also:
Constant Field Values

FIRST_SINGULAR

public static final int FIRST_SINGULAR
Constant for verb person

See Also:
Constant Field Values

SECOND_SINGULAR

public static final int SECOND_SINGULAR
Constant for verb person

See Also:
Constant Field Values

THIRD_SINGULAR

public static final int THIRD_SINGULAR
Constant for verb person

See Also:
Constant Field Values

FIRST_PLURAL

public static final int FIRST_PLURAL
Constant for verb person

See Also:
Constant Field Values

SECOND_PLURAL

public static final int SECOND_PLURAL
Constant for verb person

See Also:
Constant Field Values

THIRD_PLURAL

public static final int THIRD_PLURAL
Constant for verb person

See Also:
Constant Field Values
Constructor Detail

VerbClass

public VerbClass(java.lang.String verb,
                 int type,
                 int tense,
                 int person)
Creates a new VerbClass object.

Parameters:
verb - String containing the verb.
type - Type of verb, either action or linking.
tense - Time for the verb, either past, present, or future.
person - Person that executes the action, either first, second, or third. Each may be plural.
Method Detail

getType

public int getType()
Returns the type of verb, either ACTION or LINKING. The integer returned will be a constant defined in this class.

Returns:
The type of the verb.

getTense

public int getTense()
Returns the tense of verb, as in past, present, or future. The integer returned will be a constant defined in this class.

Returns:
The tense of the verb.

getPerson

public int getPerson()
Returns the person of verb, as in first, second, or third. The integer returned will be a constant defined in this class.

Returns:
The person of the verb.

toString

public java.lang.String toString()
Returns the string for this verb.

Overrides:
toString in class java.lang.Object
Returns:
Returns the string for this verb.

Fido Alpha 3.2