com.bstek.urule.runtime.response.ExecutionResponseImpl Maven / Gradle / Ivy
/*******************************************************************************
* Copyright 2017 Bstek
*
* 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.
******************************************************************************/
package com.bstek.urule.runtime.response;
import java.util.ArrayList;
import java.util.List;
import com.bstek.urule.action.ActionValue;
import com.bstek.urule.model.rule.RuleInfo;
/**
* @author Jacky.gao
* @since 2015年1月27日
*/
public class ExecutionResponseImpl implements RuleExecutionResponse,FlowExecutionResponse {
private long duration;
private String flowId;
private List nodeNames=new ArrayList();
private List ruleExecutionResponses=new ArrayList();
private List flowExecutionResponses=new ArrayList();
private List rulesFired;
private List matchedRules=new ArrayList();
private List actionValues;
@Override
public String getFlowId() {
return flowId;
}
public void setFlowId(String flowId) {
this.flowId = flowId;
}
public void addFlowExecutionResponse(FlowExecutionResponse response) {
flowExecutionResponses.add(response);
}
@Override
public List getFlowExecutionResponses() {
return flowExecutionResponses;
}
@Override
public List getRuleExecutionResponses() {
return ruleExecutionResponses;
}
public void addRuleExecutionResponse(RuleExecutionResponse response) {
ruleExecutionResponses.add(response);
}
@Override
public List getNodeNames() {
return nodeNames;
}
public void addNodeName(String nodeName) {
nodeNames.add(nodeName);
}
@Override
public List getActionValues() {
return actionValues;
}
public void setActionValues(List actionValues) {
this.actionValues = actionValues;
}
public long getDuration() {
return duration;
}
public void setDuration(long duration) {
this.duration = duration;
}
public List getMatchedRules() {
return matchedRules;
}
public void addMatchedRules(List matchedRules){
this.matchedRules.addAll(matchedRules);
}
public List getFiredRules() {
return rulesFired;
}
public void setFiredRules(List rulesFired) {
this.rulesFired = rulesFired;
}
}