001/**
002 * RealAction.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 java.math.BigDecimal;
022import java.math.BigInteger;
023
024import net.sf.jaccumulator.ControlIntention;
025import net.sf.jaccumulator.reals.Real;
026import net.sf.jaccumulator.reals.SealedReal;
027
028/**
029 * An action processor for {@link Real} signals
030 * 
031 * @param <MODEL>
032 *        the model type to act upon
033 * 
034 * @since JAccumulator 4.0
035 * @author Nicole Tedesco (<a
036 *         href="mailto:nicole@tedesco.name">nicole@tedesco.name</a>)
037 */
038public interface RealAction<MODEL>
039    extends
040        ScalarAction<MODEL>
041{
042    public ControlIntention reactToReal(
043        final BigDecimal aSignal,
044        final MODEL aModel );
045
046    public ControlIntention reactToReal(
047        final BigInteger aSignal,
048        final MODEL aModel );
049
050    public ControlIntention reactToReal(
051        final SealedReal<?> aSignal,
052        final MODEL aModel );
053}