public class Factor extends Object implements Serializable, Cloneable
Serializable avec ses valeurs pour permettre
l'export XML.| Modifier and Type | Field and Description |
|---|---|
protected int |
cardinality
Cardinality
|
protected String |
comment
Commentaire du facteur.
|
protected Domain |
domain
Domaine du facteur.
|
protected String |
equationVariableName
Variable name in case of equation factor (must be java valid identifier)
|
protected Object |
identifier
The identifier used to compute value.
|
protected String |
name
Nom du facteur.
|
protected Object |
nominalValue
Value that this factor got in the database
|
protected String |
path
Path permettant d'identifier l'objet et la propriete de l'objet a mettre
a jour.
|
protected Object |
value
Factor value.
|
| Constructor and Description |
|---|
Factor(String name)
Constructor with name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(FactorVisitor visitor)
Accept a new visitor.
|
Object |
clone() |
int |
getCardinality() |
String |
getComment()
Get comment.
|
Object |
getDisplayedValue()
Get the factor value for displaying (for example in R).
|
Domain |
getDomain()
Get domain.
|
String |
getEquationVariableName()
Get variable name.
|
String |
getName()
Get name.
|
Object |
getNominalValue() |
String |
getPath()
Get path.
|
Object |
getValue()
Get value.
|
void |
setCardinality(int cardinality) |
void |
setComment(String comment)
Set comment.
|
void |
setDomain(Domain domain)
Set domain.
|
void |
setEquationVariableName(String equationVariableName)
Set variable name.
|
void |
setName(String name)
Set name.
|
void |
setNominalValue(Object nominalValue) |
void |
setPath(String path)
Set path.
|
void |
setValue(Object value)
Set value.
|
void |
setValueForIdentifier(Object valueIdentifier)
Set value for label.
|
String |
toString() |
protected String name
protected String comment
protected Object identifier
protected Domain domain
ContinuousDomain,
DiscreteDomainprotected Object nominalValue
protected Object value
protected String path
setGear(value) dessus.protected int cardinality
protected String equationVariableName
public Factor(String name)
name - factor namepublic String getName()
public void setName(String name)
name - the name to setpublic String getComment()
public void setComment(String comment)
comment - comment to setpublic Domain getDomain()
public void setDomain(Domain domain)
domain - the domain to setpublic Object getValue()
public Object getDisplayedValue()
public void setValue(Object value)
value - new valuepublic void setValueForIdentifier(Object valueIdentifier)
valueIdentifier - new value identifier to getpublic String getPath()
public void setPath(String path)
path - the path to setpublic Object getNominalValue()
public void setNominalValue(Object nominalValue)
public int getCardinality()
public void setCardinality(int cardinality)
public String getEquationVariableName()
public void setEquationVariableName(String equationVariableName)
equationVariableName - the variableName to setpublic void accept(FactorVisitor visitor)
visitor - Copyright © 1999–2014 CodeLutin. All rights reserved.