001/**
002 * ScalarAction.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
021import net.sf.jaccumulator.ControlIntention;
022import net.sf.jaccumulator.scalars.Scalar;
023import net.sf.jaccumulator.scalars.SealedScalar;
024
025/**
026 * An action processor for {@link Scalar} signals
027 * 
028 * @param <MODEL>
029 *        the model type to act upon
030 * 
031 * @since JAccumulator 4.0
032 * @author Nicole Tedesco (<a
033 *         href="mailto:nicole@tedesco.name">nicole@tedesco.name</a>)
034 */
035public interface ScalarAction<MODEL>
036    extends
037        Action<MODEL>
038{
039    public ControlIntention reactToScalar(
040        final boolean aSignal,
041        final MODEL aModel );
042
043    public ControlIntention reactToScalar( final byte aSignal, final MODEL aModel );
044
045    public ControlIntention reactToScalar( final char aSignal, final MODEL aModel );
046
047    public ControlIntention reactToScalar(
048        final double aSignal,
049        final MODEL aModel );
050
051    public ControlIntention reactToScalar( final float aSignal, final MODEL aModel );
052
053    public ControlIntention reactToScalar( final int aSignal, final MODEL aModel );
054
055    public ControlIntention reactToScalar( final long aSignal, final MODEL aModel );
056
057    public ControlIntention reactToScalar(
058        final SealedScalar<?> aSignal,
059        final MODEL aModel );
060
061    public ControlIntention reactToScalar( final short aSignal, final MODEL aModel );
062}