generation.sentence
Class PurdomEven

java.lang.Object
  extended by generation.sentence.Purdom
      extended by generation.sentence.PurdomEven

public class PurdomEven
extends Purdom

An extension of Purdom's algorithm with a length control mechanism

Author:
XZW

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

PurdomEven

public PurdomEven(MyGrammar grammar)
Creates an instance

Parameters:
grammar - the grammar to generate sentences
Method Detail

generateSentences

public MySentence[] generateSentences(int iWeight)
Returns the sentences satisfying rule coverage and length control

Parameters:
iWeight - the weight of reference length
Returns:
the sentences