|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgeneration.sentence.Purdom
generation.sentence.PurdomEven
public class PurdomEven
An extension of Purdom's algorithm with a length control mechanism
Constructor Summary | |
---|---|
PurdomEven(MyGrammar grammar)
Creates an instance |
Method Summary | |
---|---|
MySentence[] |
generateSentences(int iWeight)
Returns the sentences satisfying rule coverage and length control |
Methods inherited from class generation.sentence.Purdom |
---|
generateSentences |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PurdomEven(MyGrammar grammar)
grammar
- the grammar to generate sentencesMethod Detail |
---|
public MySentence[] generateSentences(int iWeight)
iWeight
- the weight of reference length
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |