public class IlrDTService extends ilog.rules.studio.model.base.impl.IlrRuleProjectServiceImpl implements IlrDTEnvironment
It implements IlrDTEnvironment and provides the integration environment for DT Rule. This class
provides a vocabulary and links the DT Rules to Rule Designer.
This class also provides helper API to manipulate Decision Table and Decision Tree artifacts in the context of Rule Designer.
org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderBaseImpl, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderImplorg.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SERVICE_ID
Identification of the DT Service Rule Project service.
|
SERVICE_ID_EDEFAULT, serviceIDeAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY| Modifier and Type | Method and Description |
|---|---|
void |
commitDTController(IlrDTController dtController)
Commits changes in the DT model of the DT controller to its corresponding rule.
|
static IlrDTRule |
convertToLocale(IlrDTRule rule,
IlrDTRule target)
This method converts the definition of the given DT rule from its original locale to the specified target locale.
|
static java.lang.String |
getDecisionTableHTMLDefinition(IlrDecisionTable dt)
This method computes the HTML definition of the given Decision Table.
|
IlrDTController |
getOrCreateDTController(IlrDTRule dtRule,
boolean storeInCache)
Retrieves the DT Controller from the cache for the corresponding DT Rule.
|
IlrBRLParser |
getParser(IlrDTRuleElement dt)
Returns a BRL parser on the BAL grammar for a given DT element.
|
IlrBRLVariableProvider |
getVariableProvider()
This method returns the variable provider associated to this service.
|
IlrVocabulary |
getVocabulary(java.util.Locale locale)
Returns the vocabulary associated to the rule project.
|
basicSetRuleProject, dispose, eBasicRemoveFromContainerFeature, eGet, eInverseAdd, eInverseRemove, eIsSet, eSet, eStaticClass, eUnset, getRuleProject, getServiceID, initialize, setRuleProject, setServiceID, toStringeAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURIeAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseRemove, eInvocationDelegate, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStaticOperationCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValueseBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotifyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waiteAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnsetpublic static java.lang.String SERVICE_ID
public IlrVocabulary getVocabulary(java.util.Locale locale)
getVocabulary in interface IlrDTEnvironmentlocale - The locale associated with the vocabulary.locale.public IlrBRLVariableProvider getVariableProvider()
getVariableProvider in interface IlrDTEnvironmentpublic IlrDTController getOrCreateDTController(IlrDTRule dtRule, boolean storeInCache)
If it is not in the cache, the DT Controller is created and returned.
dtRule - The DT Rule.storeInCache - Specifies whether the DT Controller that may be built by calling this method
should be stored in the cache associated with this DT Service.public void commitDTController(IlrDTController dtController)
This method is useful when DT Model updates are done out of the Rule Designer editor.
dtController - The DT controller to be committed.public static java.lang.String getDecisionTableHTMLDefinition(IlrDecisionTable dt)
dt - the decision table for which the HTML definition is requestedpublic static IlrDTRule convertToLocale(IlrDTRule rule, IlrDTRule target) throws java.lang.RuntimeException
java.lang.RuntimeException - if an error occurs when converting the DT rule.rule - the DT Rule for which a translation is requestedtarget - the target DT to which the new definition is setpublic IlrBRLParser getParser(IlrDTRuleElement dt)
IlrDTEnvironmentdt.getParser in interface IlrDTEnvironmentdt - The DT element the returned parser will be used for.© Copyright IBM Corp. 1987, 2017