Class Word.Grammar

java.lang.Object
  extended byWord.Grammar
Enclosing class:
Word

class Word.Grammar
extends java.lang.Object

This subclass of word is needed to save all the grammatical information of a word. The information is mainly used for generating a word (nomen, adjectives, etc)

Author:
Arthur Laub Arthur.Laub@urz.uni-hd.de Project: Kölschifier

Field Summary
private  int genus
           
private  int info
           
private  int kasus
           
private  int person
           
private  int tempus
           
 
Constructor Summary
(package private) Word.Grammar()
          The Grammar() constructor initiates the variables as empty.
 
Method Summary
 int getGenus()
           
 int getInfo()
           
 int getKasus()
           
 int getPerson()
           
 int getTempus()
           
 void set(int person)
          used to set the grammatic person (the values are stated in the Cons Class)
 void set(int person, int kasus)
          used to set the grammatic person and kasus (the values are stated in the Cons Class)
 void set(int person, int kasus, int genus)
          used to set the grammatic person, kasus and genus (the values are stated in the Cons Class)
 void set(int person, int kasus, int genus, int info)
          used to set the grammatic person, kasus, genus and additional information (the values are stated in the Cons Class)
 void setGenus(int genus)
          set the grammatical information genus
 void setInfo(int info)
          set the grammatical information info
 void setKasus(int kasus)
          set the grammatical information kasus
 void setPerosn(int person)
          set the grammatical information person
 void setTempus(int tempus)
          set the grammatical information tempus
 void setVerb(int person, int tempus, int info)
          used to set grammatical information for a verb
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

genus

private int genus

info

private int info

kasus

private int kasus

person

private int person

tempus

private int tempus
Constructor Detail

Word.Grammar

Word.Grammar()
The Grammar() constructor initiates the variables as empty.

Method Detail

getGenus

public int getGenus()
Returns:
the grammatical info of genus

getInfo

public int getInfo()
Returns:
the grammatical info of info

getKasus

public int getKasus()
Returns:
the grammatical info of kasus

getPerson

public int getPerson()
Returns:
the grammatical info of person

getTempus

public int getTempus()
Returns:
the grammatical info of tempus

set

public void set(int person)
used to set the grammatic person (the values are stated in the Cons Class)

Parameters:
person - (possible values: SG1, SG2P, PLURAL, etc)

set

public void set(int person,
                int kasus)
used to set the grammatic person and kasus (the values are stated in the Cons Class)

Parameters:
person - (possible values: SG1, SG2P, PLURAL, etc)
kasus - (possible values: NOM; GEN; DAT; AKK)

set

public void set(int person,
                int kasus,
                int genus)
used to set the grammatic person, kasus and genus (the values are stated in the Cons Class)

Parameters:
person - (possible values: SG1, SG2P, PLURAL, etc)
kasus - (possible values: NOM; GEN; DAT; AKK)
genus - (possible values: MASKULIN, FEMININ; NEUTRUM)

set

public void set(int person,
                int kasus,
                int genus,
                int info)
used to set the grammatic person, kasus, genus and additional information (the values are stated in the Cons Class)

Parameters:
person - (possible values: SG1, SG2P, PLURAL, etc)
kasus - (possible values: NOM; GEN; DAT; AKK)
genus - (possible values: MASKULIN, FEMININ; NEUTRUM)
info - (possible values: DIMINUTIV, etc)

setGenus

public void setGenus(int genus)
set the grammatical information genus

Parameters:
genus - (possible values: MASKULIN, FEMININ; NEUTRUM)

setInfo

public void setInfo(int info)
set the grammatical information info

Parameters:
info - (possible values: DIMINUTIV, FPLURAL, A1, A2, etc)

setKasus

public void setKasus(int kasus)
set the grammatical information kasus

Parameters:
kasus - (possible values: NOM; GEN; DAT; AKK)

setPerosn

public void setPerosn(int person)
set the grammatical information person

Parameters:
person - (possible values: SG1, SG2P, PLURAL, etc)

setTempus

public void setTempus(int tempus)
set the grammatical information tempus

Parameters:
tempus - (possible values: PRESENT; PAST; KONJ1, etc)

setVerb

public void setVerb(int person,
                    int tempus,
                    int info)
used to set grammatical information for a verb

Parameters:
person - (possible values: SG1, SG2P, PLURAL, etc)
tempus - (possible values: PRESENT, PAST)
info - (possible values: A1, A2, etc - i.e. declination classes)