ActiveConstituent.java from Texai at Krugle
Show ActiveConstituent.java syntax highlighted
/*
* ActiveConstituent.java
*
* Created on January 26, 2007, 2:25 PM
*
* Description: Defines the behavior of an active CxG construction constituent.
*
* Copyright (C) 2007 Stephen L. Reed.
*
* This program is free software; you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with this program;
* if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
package org.texai.grammar.understanding;
import java.util.List;
import java.util.Set;
import org.texai.grammar.Constituent;
import org.texai.grammar.understanding.ActiveWordFormConstruction;
import org.texai.grammar.understanding.ActiveRegularExpression;
/**
*
* @author reed
*/
public interface ActiveConstituent {
/** Gets the decorated construction.
*
* @return the decorated construction
*/
Constituent getConstruction();
/** Gets the prototype construction name.
*
* @return the prototype construction name
*/
String getName();
/** Returns the list of active parent composed constructions.
*
* @return the list of active parent composed constructions
*/
List<ActiveComposedConstruction> getActiveParentComposedConstructions();
/** Descends the leftmost branches of the child constituent tree and activate the constructions down to the leaf.
*
* @param activeComposedConstructions the set of active composed constructions
* @param activeWordConstructions the set of active word constructions
* @param activeCategoryConstructions the set of active category constructions
* @param activeRegularExpressionConstructions the set of active regular expression constructions
* @param activeParentComposedConstruction the active parent composed construction
*/
void activateDownToLeafConstituent(
ActiveComposedConstructionSet activeComposedConstructions,
Set<ActiveWordFormConstruction> activeWordConstructions,
Set<ActiveCategoryConstruction> activeCategoryConstructions,
Set<ActiveRegularExpression> activeRegularExpressionConstructions,
ActiveComposedConstruction activeParentComposedConstruction);
/** Returns a string representation of the the completed parse tree.
*
* @return a string representation of the the completed parse tree
*/
String parseTree(final int indentation);
}
See more files for this project here