fr.ifremer.isisfish.simulator.sensitivity
Class Factor<E extends Serializable,F extends Serializable>

java.lang.Object
  extended by fr.ifremer.isisfish.simulator.sensitivity.Factor<E,F>
Type Parameters:
E - type des valeurs gérées par le facteur
F - type des labels La classe doit être Serializable avec ses valeurs pour permettre l'export XML.
All Implemented Interfaces:
Serializable, Cloneable

public class Factor<E extends Serializable,F extends Serializable>
extends Object
implements Serializable, Cloneable

Facteur de variation des parametres de simulation.

Version:
$Revision: 1.0 $ Last update : $Date: 19 févr. 2009 $ By : $Author: chatellier $
Author:
chatellier
See Also:
Serialized Form

Field Summary
protected  String comment
          Commentaire du facteur.
protected  Domain<E,F> domain
          Domaine du facteur.
protected  String name
          Nom du facteur.
protected  String path
          Path permettant d'identifier l'objet et la propriete de l'objet a mettre a jour.
protected  E value
          Factor value.
 
Constructor Summary
protected Factor()
          Constructor.
  Factor(String name)
          Constructor with name.
 
Method Summary
 void accept(FactorVisitor visitor)
          Accept a new visitor.
 Object clone()
          
 String getComment()
          Get comment.
 Domain<E,F> getDomain()
          Get domain.
 String getName()
          Get name.
 String getPath()
          Get path.
 E getValue()
          Get value.
 void setComment(String comment)
          Set comment.
 void setDomain(Domain<E,F> domain)
          Set domain.
 void setName(String name)
          Set name.
 void setPath(String path)
          Set path.
 void setValue(E value)
          Set value.
 void setValueForIdentifier(F valueIdentifier)
          Set value for label.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected String name
Nom du facteur.


comment

protected String comment
Commentaire du facteur.


domain

protected Domain<E extends Serializable,F extends Serializable> 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:
ContinuousDomain, DiscreteDomain

value

protected E extends Serializable value
Factor value.


path

protected String 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 propriete setGear(value) dessus.

Constructor Detail

Factor

protected Factor()
Constructor. Protected, name is mandatory.


Factor

public Factor(String name)
Constructor with name.

Parameters:
name - factor name
Method Detail

getName

public String getName()
Get name.

Returns:
the name

setName

public void setName(String name)
Set name.

Parameters:
name - the name to set

getComment

public String getComment()
Get comment.

Returns:
the comment

setComment

public void setComment(String comment)
Set comment.

Parameters:
comment - comment to set

getDomain

public Domain<E,F> getDomain()
Get domain.

Returns:
the domain

setDomain

public void setDomain(Domain<E,F> domain)
Set domain.

Parameters:
domain - the domain to set

getValue

public E getValue()
Get value.

Returns:
the value

setValue

public void setValue(E value)
Set value.

Parameters:
value - new value

setValueForIdentifier

public void setValueForIdentifier(F valueIdentifier)
Set value for label.

Parameters:
valueIdentifier - new value identifier to get

getPath

public String getPath()
Get path.

Returns:
the path

setPath

public void setPath(String path)
Set path. Warning, path need to be always a valid entity property reference.

Parameters:
path - the path to set

accept

public void accept(FactorVisitor visitor)
Accept a new visitor.

Parameters:
visitor -

clone

public Object clone()

Overrides:
clone in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 1999-2011 CodeLutin. All Rights Reserved.