slib.sml.sm.core.utils
Class SMconf

java.lang.Object
  extended by slib.utils.i.Conf
      extended by slib.sml.sm.core.utils.SMconf

public class SMconf
extends slib.utils.i.Conf

Basic class used to represent the configuration associated to a Semantic Measures.

Author:
Harispe Sébastien

Field Summary
 String className
          The name of the class associated to the semantic measures method the configuration is linked to.
 String flag
          The flag corresponding to the type of measure associated to the configuration.
 ICconf icConf
          The configuration of the Information Content metric associated to the measure.
 String id
          The unique id associated to the configuration.
 String label
          The label of the configuration.
 String pairwise_measure_id
          The id of the pairwise measure associated to the configuration (in case of groupwise measures).
 
Constructor Summary
SMconf(String flag, ICconf icConf)
          Build an instance of configuration considering the given flag and Information Content configuration.
SMconf(String id, String flag)
          Build an instance of configuration considering the given id and flag
SMconf(String id, String flag, ICconf icConf)
          Build an instance of configuration considering the given flag and Information Content configuration.
SMconf(String id, String flag, String label)
          Build an instance of configuration considering the given id, flag and label.
SMconf(String id, String flag, String label, ICconf icConf)
          Build an instance of configuration considering the given id, flag and Information Content configuration.
 
Method Summary
 SMconf addParam(String p, Object v)
          Add the parameter to the configuration Override existing parameter if one exists.
 ICconf getICconf()
          The IC configuration associated to the configuration.
 String getPairwise_measure_id()
          Getter of the pairwise Id
 void setICconf(ICconf ic)
          Mutator of the IC configuration.
 void setPairwise_measure_id(String pairwise_measure_id)
          Mutator of the pairwise id.
 String toString()
           
 
Methods inherited from class slib.utils.i.Conf
containsParam, containsParams, getParam, getParamAsDouble, getParamAsString, getParams, removeParam, setParams
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

public String id
The unique id associated to the configuration.


flag

public String flag
The flag corresponding to the type of measure associated to the configuration.


className

public String className
The name of the class associated to the semantic measures method the configuration is linked to.


label

public String label
The label of the configuration.


icConf

public ICconf icConf
The configuration of the Information Content metric associated to the measure.


pairwise_measure_id

public String pairwise_measure_id
The id of the pairwise measure associated to the configuration (in case of groupwise measures).

Constructor Detail

SMconf

public SMconf(String id,
              String flag)
       throws slib.utils.ex.SLIB_Ex_Critic
Build an instance of configuration considering the given id and flag

Parameters:
id - the id of the configuration (must be unique).
flag - the flag defining the semantic measure method associated to the configuration.
Throws:
slib.utils.ex.SLIB_Ex_Critic

SMconf

public SMconf(String id,
              String flag,
              String label)
       throws slib.utils.ex.SLIB_Ex_Critic
Build an instance of configuration considering the given id, flag and label.

Parameters:
id - the id of the configuration (must be unique).
flag - the flag defining the semantic measure method associated to the configuration.
label - the label associated to the configuration.
Throws:
slib.utils.ex.SLIB_Ex_Critic

SMconf

public SMconf(String flag,
              ICconf icConf)
       throws slib.utils.ex.SLIB_Ex_Critic
Build an instance of configuration considering the given flag and Information Content configuration.

Parameters:
flag - the flag defining the semantic measure method associated to the configuration.
icConf - the IC configuration associated to the configuration
Throws:
slib.utils.ex.SLIB_Ex_Critic

SMconf

public SMconf(String id,
              String flag,
              ICconf icConf)
       throws slib.utils.ex.SLIB_Ex_Critic
Build an instance of configuration considering the given flag and Information Content configuration.

Parameters:
id - the id of the configuration (must be unique).
flag - the flag defining the semantic measure method associated to the configuration.
icConf - the IC configuration associated to the configuration
Throws:
slib.utils.ex.SLIB_Ex_Critic

SMconf

public SMconf(String id,
              String flag,
              String label,
              ICconf icConf)
       throws slib.utils.ex.SLIB_Ex_Critic
Build an instance of configuration considering the given id, flag and Information Content configuration.

Parameters:
id - the id of the configuration (must be unique).
flag - the flag defining the semantic measure method associated to the configuration.
label - the label associated to the configuration
icConf - the IC configuration associated to the configuration
Throws:
slib.utils.ex.SLIB_Ex_Critic
Method Detail

getICconf

public ICconf getICconf()
The IC configuration associated to the configuration.

Returns:
the IC configuration associated to the current configuration

setICconf

public void setICconf(ICconf ic)
Mutator of the IC configuration.

Parameters:
ic - the new IC configuration to consider

getPairwise_measure_id

public String getPairwise_measure_id()
Getter of the pairwise Id

Returns:
the pairwise id

setPairwise_measure_id

public void setPairwise_measure_id(String pairwise_measure_id)
Mutator of the pairwise id.

Parameters:
pairwise_measure_id - the new id of the measure configuration

toString

public String toString()
Overrides:
toString in class slib.utils.i.Conf

addParam

public SMconf addParam(String p,
                       Object v)
Add the parameter to the configuration Override existing parameter if one exists.

Overrides:
addParam in class slib.utils.i.Conf
Parameters:
p - the parameter flag
v - the value associated
Returns:
the configuration object from which the method is called (auto complete feature)


Copyright © 2013. All Rights Reserved.