standup.joke
Interface JokeConstraint

All Known Subinterfaces:
InstantiationConstraint
All Known Implementing Classes:
InstantiationConstraintAmbiguity, InstantiationConstraintFamiliarityScore, InstantiationConstraintFLevel, InstantiationConstraintLexeme, InstantiationConstraintLexemeClause, InstantiationConstraintLexemeSchema, InstantiationConstraintLexicon, InstantiationConstraintLexiconAll, InstantiationConstraintLexiconAllClause, InstantiationConstraintLexiconAllSchema, InstantiationConstraintLexiconClause, InstantiationConstraintLexiconNone, InstantiationConstraintLexiconSchema, InstantiationConstraintNovelty, InstantiationConstraintPhoneticSimilarity, JokeConstraintAllowedSchemas, JokeConstraintType, JokeConstraintTypes

public interface JokeConstraint

A JokeConstraint represents a constraint on a particular aspect of a JokeStructure.

In its simplest form, a JokeConstraint supports a generate-and-test form of validation through the validate(JokeStructure) method, which returns true if the given joke satisfies that constraint, and false otherwise.

Author:
Ruli Manurung

Method Summary
 boolean validate(JokeStructure j)
          Returns true if the given JokeStructure satisfies this constraint, and false if not.
 

Method Detail

validate

boolean validate(JokeStructure j)
Returns true if the given JokeStructure satisfies this constraint, and false if not.

Parameters:
j - the JokeStructure being validated
Returns:
-- true if j satisfies this constraint, false otherwise.