1 /*
2 * To change this template, choose Tools | Templates
3 * and open the template in the editor.
4 */
5
6 package net.sf.zel.nr;
7
8 /**
9 * The Operable concept interface.
10 * in ZEL all objects that implement this interface can be used in + - / % = mod expressions
11 *
12 * @author zoly
13 */
14 public interface Operable<T> {
15
16
17 public T add(T addend);
18
19 public T subtract(T subtrahend);
20
21 public T multiply(T multiplier);
22
23 public T divide(T divisor);
24
25 public T mod(T divisor);
26
27 public T create(String val);
28
29 public T convert(ExtendedNumber val);
30
31 }