public class IlrPackageFactory
extends java.lang.Object
implements java.io.Serializable, ilog.rules.factory.IlrPackageElement
Artifacts defined in a given package are visible in another package either if they are referenced with their fully qualified name or if their package is imported into the package that uses the artifacts.
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
formalComment
This field contains the formal comment of the package.
|
java.lang.String |
name
This field is the name of the package.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFunction(IlrFunctionFactory function)
Adds a function in the package.
|
void |
addRule(IlrRuleFactory rule)
Adds a rule to the rules of the package.
|
void |
addTask(IlrTaskFactory task)
Adds a task to the tasks of the ruleset.
|
java.util.Enumeration |
enumerateFunctions()
Gets an enumeration to visit all the functions of this package.
|
IlrFunctionFactory[] |
getFunctions()
Gets the functions of this package.
|
IlrStatement[] |
getInitialActions()
Deprecated.
|
IlrReflect |
getReflect()
Gets the reflect object.
|
IlrRuleFactory |
getRule(java.lang.String name)
Gets a rule factory by name.
|
IlrRuleFactory[] |
getRules()
Gets the rules of this package.
|
IlrTaskFactory |
getTask(java.lang.String name)
Gets a task factory by name.
|
IlrTaskFactory[] |
getTasks()
Returns an array with the tasks defined in the package.
|
IlrVariable |
getVariable(java.lang.String name)
Returns the variable that implements the variable whose name
is passed as a parameter.
|
java.util.Vector |
getVariables()
Returns the variables defined in the package.
|
boolean |
isDefaultPackage()
Indicates whether
this is the default package (whose name is
the empty string) or not. |
public java.lang.String name
public java.lang.String formalComment
public boolean isDefaultPackage()
this is the default package (whose name is
the empty string) or not.isDefaultPackage in interface ilog.rules.factory.IlrPackageElementtrue if this is the default package,
else it returns falsepublic final IlrReflect getReflect()
public final IlrStatement[] getInitialActions()
null
if no initial rule has been created.public IlrVariable getVariable(java.lang.String name)
name - The name of the variable we are looking for.public java.util.Vector getVariables()
IlrVariable objects. The returned vector is empty
in case no variable is defined in the package.getVariables in interface ilog.rules.factory.IlrPackageElementpublic void addRule(IlrRuleFactory rule)
rule - The rule to be added.public IlrRuleFactory getRule(java.lang.String name)
name - The name of the rule factory.name.
When name is null, a null
object is returned.public final IlrRuleFactory[] getRules()
public IlrTaskFactory[] getTasks()
public void addTask(IlrTaskFactory task)
task - The task to be added.public final IlrTaskFactory getTask(java.lang.String name)
name - The name of the task factory.name.
When name is null, a null
object is returned.public void addFunction(IlrFunctionFactory function)
function - The function added into the package.public final IlrFunctionFactory[] getFunctions()
public final java.util.Enumeration enumerateFunctions()
© Copyright IBM Corp. 1987, 2017