generation.sentence
Class CDRC

java.lang.Object
  extended by generation.sentence.CDRC
Direct Known Subclasses:
CDRCEven

public class CDRC
extends java.lang.Object

A modification of Purdom's algorithm, named CDRC-P algorithm, to generate sentences satisfying context-dependent rule coverage.

Author:
XZW

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

Constructor Detail

CDRC

public CDRC(MyGrammar grammar)
Creates an instance of CDRC

Parameters:
grammar - the grammar to generate sentences
Method Detail

generateSentences

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

Returns:
the sentences.