/*
 * Copyright (c) 2015 Justin White <jw@justinwhite.net>
 *  All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  1. Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *
 *  2. Redistributions in binary form must reproduce the above copyright notice,
 *   this list of conditions and the following disclaimer in the documentation
 *   and/or other materials provided with the distribution.
 *
 *  3. Neither the name of the copyright holder nor the names of its
 *  contributors may be used to endorse or promote products derived from this
 *  software without specific prior written permission.
 *
 *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 *  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 *  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 *  ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
 *  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 *  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 *  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 *  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 *  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 *  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 *  POSSIBILITY OF SUCH DAMAGE.
 */

package net.justinwhite.score_model.phase_10;

public class Phase {
    public static final int INACTIVE = 0;
    public static final int ACTIVE = 1;
    public static final int COMPLETED = 2;

    private int status;

    Phase() {
        setStatus(ACTIVE);
    }

    Phase (int _status) {
        setStatus(_status);
    }

    Phase(boolean _active) {
        setStatus(_active);
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int _status) {
        status = _status;
    }

    public void setStatus(boolean _active) {
        if (_active) {
            setStatus(ACTIVE);
        } else {
            setStatus(INACTIVE);
        }
    }

    public boolean isActive() {
        return status == ACTIVE;
    }

    public boolean isCompleted() {
        return status == COMPLETED;
    }

}

@@ -1690,106 +1690,51 @@
 lic 
-static final int INACTIVE = 0;%0A    public static final int ACTIVE = 1;%0A    public static final int
+enum PhaseState %7B%0A        INACTIVE, ACTIVE,
  COM
@@ -1743,13 +1743,14 @@
 ETED
- = 2;
+%0A    %7D
 %0A%0A  
@@ -1759,19 +1759,26 @@
 private 
-int
+PhaseState
  status;
@@ -1803,32 +1803,43 @@
       setStatus(
+PhaseState.
 ACTIVE);%0A    %7D%0A%0A
@@ -1849,19 +1849,26 @@
  Phase (
-int
+PhaseState
  _status
@@ -1981,19 +1981,26 @@
  public 
-int
+PhaseState
  getStat
@@ -2066,11 +2066,18 @@
 tus(
-int
+PhaseState
  _st
@@ -2207,16 +2207,27 @@
 tStatus(
+PhaseState.
 ACTIVE);
@@ -2266,16 +2266,27 @@
 tStatus(
+PhaseState.
 INACTIVE
@@ -2362,16 +2362,114 @@
 atus == 
+PhaseState.ACTIVE;%0A    %7D%0A%0A    public boolean isInactive() %7B%0A        return status == PhaseState.IN
 ACTIVE;%0A
@@ -2535,16 +2535,27 @@
 atus == 
+PhaseState.
 COMPLETE

Use enum for PhaseState in Phase