001/**
002 * Copyright (c) 2025-2026, Michael Yang 杨福海 (fuhai999@gmail.com).
003 * <p>
004 * Licensed under the GNU Lesser General Public License (LGPL) ,Version 3.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 * <p>
008 * http://www.gnu.org/licenses/lgpl-3.0.txt
009 * <p>
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package dev.tinyflow.core.chain;
017
018
019public class Edge {
020    private String id;
021    private String source;
022    private String target;
023    private EdgeCondition condition;
024
025    public Edge() {
026    }
027
028    public Edge(String id) {
029        this.id = id;
030    }
031
032    public String getId() {
033        return id;
034    }
035
036    public void setId(String id) {
037        this.id = id;
038    }
039
040    public String getSource() {
041        return source;
042    }
043
044    public void setSource(String source) {
045        this.source = source;
046    }
047
048    public String getTarget() {
049        return target;
050    }
051
052    public void setTarget(String target) {
053        this.target = target;
054    }
055
056    public EdgeCondition getCondition() {
057        return condition;
058    }
059
060    public void setCondition(EdgeCondition condition) {
061        this.condition = condition;
062    }
063
064}