ilog.rules.res.model
Interface IlrMutableRepository
-
- All Superinterfaces:
- IlrRepositoryBase<IlrMutableRuleAppInformation>
public interface IlrMutableRepository extends IlrRepositoryBase<IlrMutableRuleAppInformation>
TheIlrMutableRepository
interface represents anIlrRuleAppInformation
container. It is used to add RuleApps to, or remove them, from the repository.- Since:
- 7.0
- See Also:
IlrRuleAppInformation
-
-
Method Summary
Methods Modifier and Type Method and Description IlrMutableRuleAppInformation
addRuleApp(IlrMutableRuleAppInformation ruleApp)
Adds a RuleApp to the repository.boolean
removeRuleApp(IlrMutableRuleAppInformation ruleApp)
Removes a RuleApp from the repository.-
Methods inherited from interface ilog.rules.res.model.IlrRepositoryBase
getGreatestRuleApp, getRuleApp, getRuleApps, getRuleApps
-
-
-
-
Method Detail
-
addRuleApp
IlrMutableRuleAppInformation addRuleApp(IlrMutableRuleAppInformation ruleApp) throws IlrAlreadyExistException
Adds a RuleApp to the repository. IfruleApp
already exists in the repository, anIlrAlreadyExistException
instance is thrown beforeruleApp
is added to the repository.- Throws:
IlrAlreadyExistException
- ifruleApp
already exists in the repository.- Parameters:
ruleApp
- The RuleApp to add.- Returns:
- The RuleApp added to the repository.
-
removeRuleApp
boolean removeRuleApp(IlrMutableRuleAppInformation ruleApp)
Removes a RuleApp from the repository. Nothing is changed in the repository if it does not already containruleApp
.The behavior of
ruleApp
after it has been removed from the repository is undefined .- Parameters:
ruleApp
- The RuleApp to remove.- Returns:
true
if the repository containedruleApp
.
-
-