📄 stage.java
字号:
package org.drools.integrationtests.waltz;
/*
* Copyright 2005 JBoss Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @author Alexander Bagerman
*
*/
import java.io.Serializable;
/**
*
* @author Alexander Bagerman
*
*/
public class Stage
implements
Serializable {
private static final long serialVersionUID = -2143733895059840082L;
final public static int START = 0;
final public static int DUPLICATE = 1;
final public static int DETECT_JUNCTIONS = 2;
final public static int FIND_INITIAL_BOUNDARY = 3;
final public static int FIND_SECOND_BOUNDARY = 4;
final public static int LABELING = 5;
final public static int PLOT_REMAINING_EDGES = 9;
final public static int DONE = 10;
private int value;
public Stage(final int value) {
this.value = value;
}
public int getValue() {
return this.value;
}
public void setValue(final int value) {
this.value = value;
}
public static int resolveStageValue(final String str) {
if ( str.equals( "start" ) ) {
return 0;
} else if ( str.equals( "duplicate" ) ) {
return 1;
} else if ( str.equals( "detect_junctions" ) ) {
return 2;
} else if ( str.equals( "find_initial_boundary" ) ) {
return 3;
} else if ( str.equals( "find_second_boundary" ) ) {
return 4;
} else if ( str.equals( "labeling" ) ) {
return 5;
} else if ( str.equals( "plot_remaining_edges" ) ) {
return 9;
} else if ( str.equals( "done" ) ) {
return 10;
} else {
return -9999999;
}
}
public String toString() {
return "{Stage value=" + this.value + "}";
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -