coser.common
类 Common

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

public class Common
extends java.lang.Object

Provides basic settings along with some other important data for the whole project.

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: OK. Copied from Hydrosimu.
Written time: March 09, 2011.
Last modify time: March 09, 2011.


字段摘要
修饰符 和 类型 字段 和 描述
static long computationTime
          Computation time.
static java.lang.String configurationFilename
          The system configuration filename.
static boolean ifDebug
          To specify if the system is under debug, and avoid debugging output appear in formal versions.
static java.lang.String ProjectHeader
          The project header appears in any files generated.
static java.util.Properties property
          Properties read from the configuration file.
static java.lang.String rootDirectory
          Help the relative directory.
static boolean somethingChanged
          Anything changed?
static java.lang.String subReductsFileName
          The file name of Sub-reduct
static java.lang.String unspecifiedString
          Unspecifed value.
 
构造方法摘要
构造函数 和 描述
Common()
           
 
方法摘要
修饰符 和 类型 方法 和 描述
static void exitSystem()
          Exit system.
static void loadConfiguration()
          Initialize.
static void storeConfiguration()
          Store configuration.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

rootDirectory

public static java.lang.String rootDirectory
Help the relative directory. In this way all file paths are correct while migrating to a new machine.


somethingChanged

public static boolean somethingChanged
Anything changed?


unspecifiedString

public static final java.lang.String unspecifiedString
Unspecifed value. Used when a string is not available.

另请参见:
常量字段值

ifDebug

public static boolean ifDebug
To specify if the system is under debug, and avoid debugging output appear in formal versions.


computationTime

public static long computationTime
Computation time.


ProjectHeader

public static final java.lang.String ProjectHeader
The project header appears in any files generated.

另请参见:
常量字段值

configurationFilename

public static java.lang.String configurationFilename
The system configuration filename.


property

public static java.util.Properties property
Properties read from the configuration file.


subReductsFileName

public static java.lang.String subReductsFileName
The file name of Sub-reduct

构造方法详细信息

Common

public Common()
方法详细信息

loadConfiguration

public static void loadConfiguration()
                              throws java.lang.Exception
Initialize. Read the configuration data from the system configuration file.

抛出:
java.lang.Exception - Possible Exception.

storeConfiguration

public static void storeConfiguration()
                               throws java.lang.Exception
Store configuration.

抛出:
java.lang.Exception - May be incurred by writing configuration file.

exitSystem

public static void exitSystem()
Exit system. No exception is thrown.