Constituent.java from Texai at Krugle
Show Constituent.java syntax highlighted
/*
* Constituent.java
*
* Created on January 5, 2007, 4:03 PM
*
* Description: Defines the behavior of a CxG construction constituent.
*
* Copyright (C) 2006 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;
import java.util.Set;
import org.texai.grammar.understanding.ActiveConstituent;
/**
*
* @author reed
*/
public interface Constituent {
/** Gets the construction name.
*
* @return the construction name
*/
String getName();
/**
* Sets the set of composed constructions that are activated by this word.
*
* @param activatedComposedConstructions the set of composed constructions that are activated by this word
*/
void setActivatedComposedConstructions(final Set<ComposedConstruction> activatedComposedConstructions);
/** Gets the set of composed constructions that are activated by this word.
*
* @return the set of composed constructions that are activated by this word
*/
Set<ComposedConstruction> getActivatedComposedConstructions();
/** Decorates this construction with an active construction that contains the
* behavior and transient state for parsing text.
*
* @return an ActiveSimpleConstruction that decorates this object
*/
ActiveConstituent decorate();
}
See more files for this project here