|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ilog.rules.factory.IlrPackageFactory
public class IlrPackageFactory
This class models a package in the IRL language. A package may contain local variables, rules, functions, and tasks. Each artifact contained in a package has a short name which is the artifact definition name and a fully qualified name which is the definition name prefixed with the package name.
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.
Field Summary | |
---|---|
String |
formalComment
This field contains the formal comment of the package. |
String |
name
This field is the name of the package. |
Method Summary | |
---|---|
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. |
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(String name)
Gets a rule factory by name. |
IlrRuleFactory[] |
getRules()
Gets the rules of this package. |
IlrTaskFactory |
getTask(String name)
Gets a task factory by name. |
IlrTaskFactory[] |
getTasks()
Returns an array with the tasks defined in the package. |
IlrVariable |
getVariable(String name)
Returns the variable that implements the variable whose name is passed as a parameter. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public String name
public String formalComment
Method Detail |
---|
public boolean isDefaultPackage()
this
is the default package (whose name is
the empty string) or not.
isDefaultPackage
in interface ilog.rules.factory.IlrPackageElement
true
if this
is the default package,
else it returns false
public final IlrReflect getReflect()
public final IlrStatement[] getInitialActions()
null
if no initial rule has been created.public IlrVariable getVariable(String name)
name
- The name of the variable we are looking for.public Vector getVariables()
IlrVariable
objects. The returned vector is empty
in case no variable is defined in the package.
getVariables
in interface ilog.rules.factory.IlrPackageElement
public void addRule(IlrRuleFactory rule)
rule
- The rule to be added.public IlrRuleFactory getRule(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(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 Enumeration enumerateFunctions()
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |