org.kuali.rice.krms.api.repository.proposition
Interface PropositionDefinitionContract

All Superinterfaces:
Identifiable, Versioned
All Known Implementing Classes:
PropositionDefinition, PropositionDefinition.Builder

public interface PropositionDefinitionContract
extends Identifiable, Versioned


Method Summary
 List<? extends PropositionDefinitionContract> getCompoundComponents()
          This method returns the propositions which are contained in a compound proposition.
 String getCompoundOpCode()
          This method returns the op code to be used when evaluating compound propositions.
 String getDescription()
          This is the description text for the KRMS proposition
 List<? extends PropositionParameterContract> getParameters()
          This is the parameter list of the proposition.
 String getPropositionTypeCode()
           There are three main types of Propositions: Compound Propositions - a proposition consisting of other propositions and a boolean algebra operator (AND, OR) defining how to evaluate those propositions.
 String getRuleId()
          This returns the ID of the rule this proposition belongs to.
 String getTypeId()
          This is the id of Proposition KrmsType of the proposition.
 
Methods inherited from interface org.kuali.rice.core.api.mo.common.Identifiable
getId
 
Methods inherited from interface org.kuali.rice.core.api.mo.common.Versioned
getVersionNumber
 

Method Detail

getDescription

String getDescription()
This is the description text for the KRMS proposition

Returns:
description for KRMS type.

getTypeId

String getTypeId()
This is the id of Proposition KrmsType of the proposition. It provides some context to what type of object of the KRMS type.

Returns:
the id of the KRMS type.

getRuleId

String getRuleId()
This returns the ID of the rule this proposition belongs to. May be null if this proposition has not yet been persisted.

Returns:
the ID of the Rule this proposition belongs to.

getPropositionTypeCode

String getPropositionTypeCode()

There are three main types of Propositions: Compound Propositions - a proposition consisting of other propositions and a boolean algebra operator (AND, OR) defining how to evaluate those propositions. Parameterized Propositions - a proposition which is parameterized by some set of values, evaluation logic is implemented by hand and returns true or false Simple Propositions - a proposition of the form lhs op rhs where lhs=left-hand side, rhs=right-hand side, and op=operator

Returns:
the proposition type code of the proposition

Valid values are C = compound, P = parameterized, S = simple


getParameters

List<? extends PropositionParameterContract> getParameters()
This is the parameter list of the proposition. Parameters are listed in Reverse Polish Notation. Parameters may be constants, terms, or functions.

Compound Propositions will have an empty parameter list.

Returns:
the Parameters related to the proposition
See Also:
PropositionParameter

getCompoundOpCode

String getCompoundOpCode()
This method returns the op code to be used when evaluating compound propositions.

Returns:
the compound op code. valid values are A = and, O = or

getCompoundComponents

List<? extends PropositionDefinitionContract> getCompoundComponents()
This method returns the propositions which are contained in a compound proposition.

Returns:
an ordered list of the Propositions which make up the compound proposition.


Copyright © 2005-2011 The Kuali Foundation. All Rights Reserved.