1
2
3
4 package net.sf.bddbddb.dataflow;
5
6 import java.util.HashMap;
7 import java.util.Map;
8 import jwutil.util.Assert;
9 import net.sf.bddbddb.ir.Operation;
10
11 /***
12 * RelationProblem
13 *
14 * @author John Whaley
15 * @version $Id: OperationProblem.java 328 2004-10-16 02:45:30Z joewhaley $
16 */
17 public abstract class OperationProblem extends Problem {
18 Map
19
20 public OperationProblem() {
21 this.initialize();
22 }
23
24 public void initialize() {
25 operationFacts = new HashMap();
26 }
27
28 public OperationFact getFact(Operation o) {
29 return (OperationFact) operationFacts.get(o);
30 }
31
32 public void setFact(Operation o, OperationFact f) {
33 Assert._assert(f.getOperation() == o);
34 operationFacts.put(o, f);
35
36 }
37
38 public abstract boolean direction();
39 public static interface OperationFact extends Fact {
40 public Operation getOperation();
41 }
42 public abstract class OperationTransferFunction extends TransferFunction {
43 }
44 }