samples/apifest1/day1/inputandoperation/src/org/netbeans/apifest/boolcircuit/Operation.java
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/samples/apifest1/day1/inputandoperation/src/org/netbeans/apifest/boolcircuit/Operation.java Sat Jun 14 09:52:45 2008 +0200
1.3 @@ -0,0 +1,33 @@
1.4 +/*
1.5 + * Operation.java
1.6 + *
1.7 + * Created on July 12, 2006, 2:26 PM
1.8 + *
1.9 + * To change this template, choose Tools | Template Manager
1.10 + * and open the template in the editor.
1.11 + */
1.12 +
1.13 +package org.netbeans.apifest.boolcircuit;
1.14 +
1.15 +/**
1.16 + *
1.17 + */
1.18 +public abstract class Operation {
1.19 +
1.20 + private boolean used;
1.21 +
1.22 + /** Creates a new instance of Operation */
1.23 + Operation() {
1.24 + }
1.25 +
1.26 + abstract boolean performBooleanOperation();
1.27 +
1.28 + void markOperationAsUsed() {
1.29 + used = true;
1.30 + }
1.31 +
1.32 + boolean isUsed() {
1.33 + return used;
1.34 + }
1.35 +
1.36 +}