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.krms.impl.provider.repository;
017
018import org.kuali.rice.krms.api.repository.action.ActionDefinition;
019import org.kuali.rice.krms.api.repository.agenda.AgendaDefinition;
020import org.kuali.rice.krms.api.repository.agenda.AgendaTreeDefinition;
021import org.kuali.rice.krms.api.repository.context.ContextDefinition;
022import org.kuali.rice.krms.api.repository.proposition.PropositionDefinition;
023import org.kuali.rice.krms.api.repository.rule.RuleDefinition;
024import org.kuali.rice.krms.framework.engine.Action;
025import org.kuali.rice.krms.framework.engine.Agenda;
026import org.kuali.rice.krms.framework.engine.AgendaTree;
027import org.kuali.rice.krms.framework.engine.Context;
028import org.kuali.rice.krms.framework.engine.Proposition;
029import org.kuali.rice.krms.framework.engine.Rule;
030import org.kuali.rice.krms.framework.engine.SubAgenda;
031
032import java.util.List;
033
034/**
035 * Can perform translations from rules defined in a repository to an executable version consumable by the rules engine.
036 * 
037 * @author Kuali Rice Team (rice.collab@kuali.org)
038 *
039 */
040public interface RepositoryToEngineTranslator {
041
042        public Context translateContextDefinition(ContextDefinition contextDefinition);
043        
044        public Agenda translateAgendaDefinition(AgendaDefinition agendaDefinition);
045        
046        public AgendaTree translateAgendaDefinitionToAgendaTree(AgendaDefinition agendaDefinition);
047        
048        public AgendaTree translateAgendaTreeDefinition(AgendaTreeDefinition agendaTreeDefinition);
049                
050        public Rule translateRuleDefinition(RuleDefinition ruleDefinition);
051        
052        public SubAgenda translateAgendaTreeDefinitionToSubAgenda(AgendaTreeDefinition subAgendaDefinition);
053        
054        public Proposition translatePropositionDefinition(PropositionDefinition propositionDefinition);
055        
056        public Action translateActionDefinition(ActionDefinition actionDefinition);
057
058    public List<Action> translateActionDefinitions(List<ActionDefinition> actions);
059}