|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectFigure
A Figure object contains rhetorical figures about a YaspPoem.
Constructor Summary | |
Figure()
Create an instance of Figure. |
|
Figure(YaspPoem yPoem)
Create an instance of Figure. |
Method Summary | |
void |
addToAlliterationList(int[] item)
Add an alliteration in the poem to the alliteration list. |
void |
addToAnaphorList(int[] item)
Add an occurrence of an anaphor in the current poem to the anaphora list. |
void |
addToEpipherList(int[] item)
Add an occurrence of an epipher in the current poem to the epipher list. |
void |
addToRepetitionList(int[] item)
Add a repetition in the poem to the repetition list. |
void |
detectFigures(YaspPoem poem)
Detect figures on the given instance of YaspPoem. |
int |
getAllitCode()
Get the current alliteration code. |
java.util.ArrayList |
getAlliterationList()
Return the list of alliterations in poem. |
int |
getAnaphCode()
Get the current anaphora code. |
java.util.ArrayList |
getAnaphorList()
Return the list of anaphora in the poem this instance processes. |
int |
getEpiphCode()
Get the current epipher code. |
java.util.ArrayList |
getEpipherList()
Return the list of epiphers in this poem. |
int |
getNewAllitCode()
Get the current alliteration code increased by 1. |
int |
getNewAnaphCode()
|
int |
getNewEpiphCode()
|
int |
getNewRepCode()
|
int |
getRepCode()
Get the current repetition code. |
java.util.ArrayList |
getRepetitionList()
Return the list of repetitions in poem. |
int |
getStanzaNumber()
Return the number of stanzas in the poem this instance processes. |
YaspPoem |
getYaspPoem()
Get the YaspPoem this Figure instance processes. |
void |
run()
Process the current poem, finding all rhetorical figures contained in it. |
void |
setAlliterationList(java.util.ArrayList a)
|
void |
setAnaphorList(java.util.ArrayList a)
|
void |
setEpipherList(java.util.ArrayList a)
|
void |
setRepetitionList(java.util.ArrayList a)
|
void |
setStanzaNumber(int n)
|
void |
setYaspPoem(YaspPoem yp)
Set the YaspPoem this Figure instance is supposed to process. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Figure(YaspPoem yPoem)
yPoem
- the YaspPoem whose figures are to be determined.public Figure()
Method Detail |
public YaspPoem getYaspPoem()
public void setYaspPoem(YaspPoem yp)
public int getStanzaNumber()
public void setStanzaNumber(int n)
public java.util.ArrayList getAnaphorList()
public void setAnaphorList(java.util.ArrayList a)
public void addToAnaphorList(int[] item)
item
- the coordinates (4-dim vector) of the anaphor in the poem.public java.util.ArrayList getEpipherList()
public void setEpipherList(java.util.ArrayList a)
public void addToEpipherList(int[] item)
item
- the coordinates (4-dim vector) of the epipher in the poem.public java.util.ArrayList getRepetitionList()
public void setRepetitionList(java.util.ArrayList a)
public void addToRepetitionList(int[] item)
item
- The int array containing the 4-dim coordinates [#stanza,#verse,#word1,#word2].public java.util.ArrayList getAlliterationList()
public void setAlliterationList(java.util.ArrayList a)
public void addToAlliterationList(int[] item)
item
- The int array containing the 4-dim coordinates [#stanza,#verse,#word1,#word2].public int getAllitCode()
public int getRepCode()
public int getAnaphCode()
public int getEpiphCode()
public int getNewAllitCode()
public int getNewRepCode()
public int getNewAnaphCode()
public int getNewEpiphCode()
public void run()
public void detectFigures(YaspPoem poem)
poem
- the poem to find figures in.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |