samples/apifest1/day1/parsingsolution/src/org/netbeans/apifest/boolcircuit/Circuit.java
changeset 132 3bc4c54f4bcc
parent 52 4257f4cf226b
child 133 50bf1b976c0d
     1.1 --- a/samples/apifest1/day1/parsingsolution/src/org/netbeans/apifest/boolcircuit/Circuit.java	Sat Jun 14 09:52:45 2008 +0200
     1.2 +++ b/samples/apifest1/day1/parsingsolution/src/org/netbeans/apifest/boolcircuit/Circuit.java	Sat Jun 14 09:56:12 2008 +0200
     1.3 @@ -36,19 +36,21 @@
     1.4       * Input values are represented by x and number starting from 1 eg.: x1
     1.5       * AND, NOT, OR and brackets '(',')' can be used.
     1.6       * Example of valid expression: x1 AND x2
     1.7 -     * @return 0 when input expression is validated and parsed. Return nonzero value otherwise.
     1.8 +     * @return 0 when input expression is validated and parsed. 
     1.9 +     * Return nonzero value otherwise.
    1.10       */
    1.11      public int parse(String expression) {
    1.12          return 0;
    1.13      }
    1.14      
    1.15      /** Evaluate logical expression
    1.16 -     * @param array of boolean input values. Size of array must correspond to number
    1.17 -     * of variables used in expression
    1.18 -     * If size of array is bigger then only first N values are used to evaluate expression.
    1.19 -     * Remaining values are ignored.
    1.20 +     * @param array of boolean input values. Size of array must
    1.21 +     * correspond to number of variables used in expression
    1.22 +     * If size of array is bigger then only first N values are used 
    1.23 +     * to evaluate expression. Remaining values are ignored.
    1.24       * If size of array is smaller then IllegalArgumentException is thrown.
    1.25 -     * If no expression is set by method parse then IllegalStateException is thrown.
    1.26 +     * If no expression is set by method parse then 
    1.27 +     * IllegalStateException is thrown.
    1.28       */
    1.29      public boolean evaluate(boolean [] x) {
    1.30          return true;