io.resys.wrench.assets.dt.spi.beans.ImmutableDecisionTableDecision Maven / Gradle / Ivy
package io.resys.wrench.assets.dt.spi.beans;
import java.util.List;
/*-
* #%L
* wrench-component-dt
* %%
* Copyright (C) 2016 - 2017 Copyright 2016 ReSys OÜ
* %%
* 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.
* #L%
*/
import java.util.Map;
import io.resys.wrench.assets.dt.api.DecisionTableRepository.DecisionTableExpression;
import io.resys.wrench.assets.dt.api.model.DecisionTable.DecisionTableNode;
import io.resys.wrench.assets.dt.api.model.DecisionTableResult.DecisionContext;
import io.resys.wrench.assets.dt.api.model.DecisionTableResult.DecisionTableDecision;
public class ImmutableDecisionTableDecision implements DecisionTableDecision {
private static final long serialVersionUID = 3977249182024873157L;
private final List context;
private final DecisionTableNode node;
private final Map expressions;
private final boolean match;
public ImmutableDecisionTableDecision(List data, DecisionTableNode node, boolean match, Map expressions) {
super();
this.context = data;
this.node = node;
this.match = match;
this.expressions = expressions;
}
@Override
public boolean isMatch() {
return match;
}
@Override
public List getContext() {
return context;
}
@Override
public Map getExpressions() {
return expressions;
}
@Override
public DecisionTableNode getNode() {
return node;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy