generation.sentence
Class CDRCNew

java.lang.Object
  extended by generation.sentence.CDRCNew

public class CDRCNew
extends java.lang.Object

A modification of CDRC-P algorithm to generate sentences satisfying context-dependent rule coverage and length control.

Author:
XZW

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

Constructor Detail

CDRCNew

public CDRCNew(MyGrammar grammar)
Creates an instance

Parameters:
grammar - the grammar to generate sentences
Method Detail

generateSentences

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

Returns:
the sentences