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:
024: public class Junction {
025: public static String TEE = "tee";
026:
027: public static String FORK = "fork";
028:
029: public static String ARROW = "arrow";
030:
031: public static String L = "L";
032:
033: private int p1;
034:
035: private int p2;
036:
037: private int p3;
038:
039: private int basePoint;
040:
041: private String type;
042:
043: public Junction() {
044:
045: }
046:
047: public Junction(final int p1, final int p2, final int p3,
048: final int basePoint, final String type) {
049: this .p1 = p1;
050: this .p2 = p2;
051: this .p3 = p3;
052: this .basePoint = basePoint;
053: this .type = type;
054: }
055:
056: public int getP1() {
057: return this .p1;
058: }
059:
060: public void setP1(final int p1) {
061: this .p1 = p1;
062: }
063:
064: public int getP2() {
065: return this .p2;
066: }
067:
068: public void setP2(final int p2) {
069: this .p2 = p2;
070: }
071:
072: public String toString() {
073: return "{Junction p1=" + this .p1 + ", p2=" + this .p2 + ", p3="
074: + this .p3 + ", basePoint=" + this .basePoint + ", type="
075: + this .type + "}";
076: }
077:
078: public int getBasePoint() {
079: return this .basePoint;
080: }
081:
082: public void setBasePoint(final int basePoint) {
083: this .basePoint = basePoint;
084: }
085:
086: public int getP3() {
087: return this .p3;
088: }
089:
090: public void setP3(final int p3) {
091: this .p3 = p3;
092: }
093:
094: public String getType() {
095: return this .type;
096: }
097:
098: public void setType(final String type) {
099: this.type = type;
100: }
101: }
|