generation.sentence
Class Purdom

java.lang.Object
  extended by generation.sentence.Purdom
Direct Known Subclasses:
PurdomEven

public class Purdom
extends java.lang.Object

Purdom's algorithm, generating sentences satisfying rule coverage

Author:
XZW

Constructor Summary
Purdom(MyGrammar grammar)
          Creates an instance of purdom
 
Method Summary
 MySentence[] generateSentences()
          Returns the sentences satisfying rule coverage.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Purdom

public Purdom(MyGrammar grammar)
Creates an instance of purdom

Parameters:
grammar - the grammar to generate sentences
Method Detail

generateSentences

public MySentence[] generateSentences()
Returns the sentences satisfying rule coverage.

Returns:
the sentences