9 |
/** A function which caches its values. |
/** A function which caches its values. |
10 |
* In order to work right, the operations |
* In order to work right, the operations |
11 |
* performed in the original function |
* performed in the original function |
12 |
* are very restricted: |
* are very restricted. |
13 |
|
* First of all, no side effects are allowed. |
14 |
|
* Second, no function whose return value depends |
15 |
|
* on anything except the passed parameters |
16 |
|
* (including the Graph) may be called. |
17 |
*/ |
*/ |
18 |
public class CachedNodeFunction implements NodeFunction { |
public class CachedNodeFunction implements NodeFunction { |
19 |
|
|