001: package org.drools.integrationtests.waltz;
002:
003: /*
004: * Copyright 2005 JBoss Inc
005: *
006: * Licensed under the Apache License, Version 2.0 (the "License");
007: * you may not use this file except in compliance with the License.
008: * You may obtain a copy of the License at
009: *
010: * http://www.apache.org/licenses/LICENSE-2.0
011: *
012: * Unless required by applicable law or agreed to in writing, software
013: * distributed under the License is distributed on an "AS IS" BASIS,
014: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015: * See the License for the specific language governing permissions and
016: * limitations under the License.
017: */
018:
019: /**
020: * @author Alexander Bagerman
021: *
022: */
023: public class Edge {
024: private int p1;
025:
026: private int p2;
027:
028: private boolean joined;
029:
030: private String label;
031:
032: private boolean plotted;
033:
034: final public static String NIL = "empty";
035:
036: final public static String B = "B";
037:
038: final public static String PLUS = "+";
039:
040: final public static String MINUS = "-";
041:
042: public Edge() {
043:
044: }
045:
046: public Edge(final int p1, final int p2, final boolean joined,
047: final String label, final boolean plotted) {
048: this .p1 = p1;
049: this .p2 = p2;
050: this .joined = joined;
051: this .label = label;
052: this .plotted = plotted;
053: }
054:
055: public int getP1() {
056: return this .p1;
057: }
058:
059: public void setP1(final int p1) {
060: this .p1 = p1;
061: }
062:
063: public int getP2() {
064: return this .p2;
065: }
066:
067: public void setP2(final int p2) {
068: this .p2 = p2;
069: }
070:
071: public String toString() {
072: return "( Edge p1=" + this .p1 + ", p2=" + this .p2 + ", joined="
073: + this .joined + ", label=" + this .label + ", plotted="
074: + this .plotted + " )";
075: }
076:
077: public boolean isJoined() {
078: return this .joined;
079: }
080:
081: public void setJoined(final boolean joined) {
082: this .joined = joined;
083: }
084:
085: public String getLabel() {
086: return this .label;
087: }
088:
089: public void setLabel(final String label) {
090: this .label = label;
091: }
092:
093: public boolean getPlotted() {
094: return this .plotted;
095: }
096:
097: public void setPlotted(final boolean plotted) {
098: this.plotted = plotted;
099: }
100: }
|