|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.bddbddb.Variable
public class Variable
A Variable is a variable in a rule.
Field Summary | |
---|---|
protected Domain |
domain
Domain of variable. |
protected java.lang.String |
name
Name of variable. |
Constructor Summary | |
---|---|
Variable()
Create empty variable. |
|
Variable(java.lang.String name)
Create a new variable with the given name. |
|
Variable(java.lang.String name,
Domain fd)
Create a new variable with the given name and domain. |
Method Summary | |
---|---|
static Variable |
fromXMLElement(org.jdom.Element e,
XMLFactory f)
|
Domain |
getDomain()
Get the domain of this variable. |
java.lang.String |
getName()
|
void |
setDomain(Domain domain)
Set the domain of this variable. |
void |
setName(java.lang.String name)
Set the name of this variable. |
java.lang.String |
toString()
|
org.jdom.Element |
toXMLElement(InferenceRule ir)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String name
protected Domain domain
Constructor Detail |
---|
public Variable()
public Variable(java.lang.String name)
name
- name of variablepublic Variable(java.lang.String name, Domain fd)
name
- name of variablefd
- domain of variableMethod Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String name)
name
- The name to set.public Domain getDomain()
public void setDomain(Domain domain)
domain
- the domain to set.public java.lang.String toString()
toString
in class java.lang.Object
public static Variable fromXMLElement(org.jdom.Element e, XMLFactory f)
public org.jdom.Element toXMLElement(InferenceRule ir)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |