summaryrefslogtreecommitdiffstats
path: root/src/de/fhswf/in/inf/java1/aufgabe12/Operator.java
blob: 3edb805b455396cac156069bb3f8741a12f751f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/**
 * 
 */
package de.fhswf.in.inf.java1.aufgabe12;

import java.util.Stack;

/**
 * An interface for on UPN operator.
 *
 * @author $Author: $
 * @version $Revision: $, $Date: $ UTC
 */
public interface Operator
{
   /**
    * Gets a stack of doubles and calculates a new value to be put on the
    * stack.
    *
    * @param stack
    *           The UPN stack of the calculator.
    */
   void eval(Stack<Double> stack);
}