001/**
002 * Guard.java
003 * 
004 * Copyright (c) 2004-2012, Nicole C. Tedesco. All rights reserved.
005 * 
006 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
007 * use this file except in compliance with the License. You may obtain a copy of
008 * the License at:
009 * 
010 * http://www.apache.org/licenses/LICENSE-2.0
011 * 
012 * Unless required by applicable law or agreed to in writing, software
013 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
014 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
015 * License for the specific language governing permissions and limitations under
016 * the License.
017 */
018
019package net.sf.jaccumulator.lex;
020
021/**
022 * Common behavior for all production guards, or that which determines whether a
023 * specific production is applicable given a specific signal and the current
024 * state of some model
025 * 
026 * @param <MODEL>
027 *        the model type to test against
028 * 
029 * @since JAccumulator 4.0
030 * @author Nicole Tedesco (<a
031 *         href="mailto:nicole@tedesco.name">nicole@tedesco.name</a>)
032 */
033public interface Guard<MODEL>
034{
035    public Logic getChildConjunction();
036
037    public boolean isCompositeGuard();
038
039    public boolean isSimpleGuard();
040}