001/**
002 * Copyright 2005-2016 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.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 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
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 org.kuali.rice.kew.engine.node;
017
018import java.util.HashMap;
019import java.util.Map;
020
021/**
022 * The current context of a search process within a node graph.
023 *
024 * @author Kuali Rice Team (rice.collab@kuali.org)
025 */
026public class NodeGraphContext {
027
028        private RouteNodeInstance previousNodeInstance;
029    private RouteNodeInstance currentNodeInstance;
030    private RouteNodeInstance resultNodeInstance;
031    private Map<String, RouteNodeInstance> visited = new HashMap<String, RouteNodeInstance>();
032    private Map<String, Integer> splitState = new HashMap<String, Integer>();
033    
034    public RouteNodeInstance getCurrentNodeInstance() {
035        return currentNodeInstance;
036    }
037    public void setCurrentNodeInstance(RouteNodeInstance currentNodeInstance) {
038        this.currentNodeInstance = currentNodeInstance;
039    }
040    public RouteNodeInstance getPreviousNodeInstance() {
041        return previousNodeInstance;
042    }
043    public void setPreviousNodeInstance(RouteNodeInstance previousNodeInstance) {
044        this.previousNodeInstance = previousNodeInstance;
045    }
046    public RouteNodeInstance getResultNodeInstance() {
047        return resultNodeInstance;
048    }
049    public void setResultNodeInstance(RouteNodeInstance resultNodeInstance) {
050        this.resultNodeInstance = resultNodeInstance;
051    }
052    public Map<String, Integer> getSplitState() {
053        return splitState;
054    }
055    public void setSplitState(Map<String, Integer> splitState) {
056        this.splitState = splitState;
057    }
058    public Map<String, RouteNodeInstance> getVisited() {
059        return visited;
060    }
061    public void setVisited(Map<String, RouteNodeInstance> visited) {
062        this.visited = visited;
063    }
064
065}