Class Factor
java.lang.Object
org.jdesktop.beans.AbstractBean
fr.ifremer.isisfish.simulator.sensitivity.Factor
- All Implemented Interfaces:
Serializable
,Cloneable
- Direct Known Subclasses:
FactorGroup
Facteur de variation des parametres de simulation.
La classe doit être
Serializable
avec ses valeurs pour permettre
l'export XML.- Version:
- $Revision$ Last update : $Date$ By : $Author$
- Author:
- chatellier
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
Cardinalityprotected String
Commentaire du facteur.protected Domain
Domaine du facteur.protected String
Variable name in case of equation factor (must be java valid identifier)protected Object
The identifier used to compute value.protected String
Nom du facteur.protected Object
Value that this factor got in the databaseprotected String
Path permettant d'identifier l'objet et la propriete de l'objet a mettre a jour.protected Object
Factor value. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(FactorVisitor visitor) Accept a new visitor.clone()
int
Get comment.Get the factor value for displaying (for example in R).Get domain.Get variable name.getName()
Get name.getPath()
Get path.getValue()
Get value.void
setCardinality
(int cardinality) void
setComment
(String comment) Set comment.void
Set domain.void
setEquationVariableName
(String equationVariableName) Set variable name.void
Set name.void
setNominalValue
(Object nominalValue) void
Set path.void
Set value.void
setValueForIdentifier
(Object valueIdentifier) Set value for label.toString()
Methods inherited from class org.jdesktop.beans.AbstractBean
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
-
Field Details
-
name
Nom du facteur. -
comment
Commentaire du facteur. -
identifier
The identifier used to compute value. -
domain
Domaine du facteur. Ensemble des valeurs possibles a prendre en compte. La clé est un label qui permet d'identifier la valeur. Le domain peut etre :- discret : i.e un ensemble de valeurs
- continu : i.e, une borne min, max
- See Also:
-
nominalValue
Value that this factor got in the database -
value
Factor value. -
path
Path permettant d'identifier l'objet et la propriete de l'objet a mettre a jour. Par exemple: topiaID#gear aura pour effet de recuperer l'objet correspondant au topiaID fournit et d'appeler le proprietesetGear(value)
dessus. -
cardinality
protected int cardinalityCardinality -
equationVariableName
Variable name in case of equation factor (must be java valid identifier)
-
-
Constructor Details
-
Factor
Constructor with name.- Parameters:
name
- factor name
-
-
Method Details
-
getName
Get name.- Returns:
- the name
-
setName
Set name.- Parameters:
name
- the name to set
-
getComment
Get comment.- Returns:
- the comment
-
setComment
Set comment.- Parameters:
comment
- comment to set
-
getDomain
Get domain.- Returns:
- the domain
-
setDomain
Set domain.- Parameters:
domain
- the domain to set
-
getValue
Get value.- Returns:
- the value
-
getDisplayedValue
Get the factor value for displaying (for example in R).- Returns:
- the value
-
setValue
Set value.- Parameters:
value
- new value
-
setValueForIdentifier
Set value for label.- Parameters:
valueIdentifier
- new value identifier to get
-
getPath
Get path.- Returns:
- the path
-
setPath
Set path. Warning, path need to be always a valid entity property reference.- Parameters:
path
- the path to set
-
getNominalValue
-
setNominalValue
-
getCardinality
public int getCardinality() -
setCardinality
public void setCardinality(int cardinality) -
getEquationVariableName
Get variable name.- Returns:
- the variableName
-
setEquationVariableName
Set variable name.- Parameters:
equationVariableName
- the variableName to set
-
accept
Accept a new visitor.- Parameters:
visitor
-
-
clone
- Overrides:
clone
in classorg.jdesktop.beans.AbstractBean
-
toString
-