001package jmri.jmrit.logixng;
002
003import jmri.JmriException;
004
005/**
006 * A LogixNG male DigitalExpressionBean socket.
007 */
008public interface MaleDigitalExpressionSocket
009        extends MaleSocket, DigitalExpressionBean {
010
011    /**
012     * {@inheritDoc}
013     * <P>
014     * This method must ensure that the value is not a Double.NaN, negative
015     * infinity or positive infinity. If that is the case, it must throw an
016     * IllegalArgumentException before checking if an error has occured.
017     */
018    @Override
019    boolean evaluate() throws JmriException;
020    
021    /**
022     * Get the last result of the evaluation.
023     * @return the last result
024     */
025    boolean getLastResult();
026    
027}