coser.common
类 Options

java.lang.Object
  继承者 coser.common.Options

public class Options
extends java.lang.Object

Settings, important options.

Author: Fan Min minfanphd@163.com
Copyright: The source code and all documents are open and free. PLEASE keep this header while revising the program.
Organization: Lab of Granular Computing, Zhangzhou Normal University, Fujian 363000, China.
Project: The cost-sensitive rough sets project

Progress: The very beginning.
Written time: March 11, 2011.
Last modify time: March 11, 2011.


字段摘要
修饰符 和 类型 字段 和 描述
static Options options
          Avoid too many static variables/functions.
static boolean realRandom
          Use real random.
 
方法摘要
修饰符 和 类型 方法 和 描述
 java.lang.String loadFromProperty(java.util.Properties paraProperty)
          Load the configuration from the given properties.
 void saveToProperty(java.util.Properties paraProperty)
          Save to the property object.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

realRandom

public static boolean realRandom
Use real random.


options

public static Options options
Avoid too many static variables/functions. I (Fan) think the system needs only one Options object. So in most cases we do not need to pass it as a parameter. I will check that and simplify the program if it is true.

方法详细信息

loadFromProperty

public java.lang.String loadFromProperty(java.util.Properties paraProperty)
Load the configuration from the given properties. Set to default values when the property value is invlid or does not exist.

参数:
paraProperty - The property contains all settings
返回:
Which properties are set to default.

saveToProperty

public void saveToProperty(java.util.Properties paraProperty)
                    throws java.lang.Exception
Save to the property object.

参数:
paraProperty - The property contains all settings
抛出:
java.lang.Exception - May be incurred by writing configuration file.