data
Class Workspace

java.lang.Object
  extended by data.Workspace
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class Workspace
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

This class mantains all the information needed during a identification task, allowing easy serialitzation of all the components if saved. Note the used matrix is not saved inside WS, just a reference to its name. That can generate errors if there are changes in matrix and later a WS referencing it's loaded. So additional checks have to be performed

Version:
1.0
Author:
Oscar Flores
See Also:
Serialized Form

Field Summary
 Configuration config
          The Workspace config
 java.util.Date dateCreated
          Creation date
 java.lang.String info
          The information about the workspace.
 java.lang.String name
          The name (identification) of the Workspace.
 java.lang.String nameRefMatrix
          The name (identification) of the reference Matrix.
(package private) static long serialVersionUID
           
 int[] test_res
          Mantains at the pos "i" the results of the test "i"
 
Constructor Summary
Workspace(java.lang.String wsName, java.lang.String wsInfo, java.lang.String wsMatName, Configuration wsCnf)
          Constructor given the reference Matrix
 
Method Summary
static java.lang.String getDefaultName()
          Generates a default name for a new Workspace using a timestamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

name

public java.lang.String name
The name (identification) of the Workspace.


info

public java.lang.String info
The information about the workspace.


dateCreated

public java.util.Date dateCreated
Creation date


nameRefMatrix

public java.lang.String nameRefMatrix
The name (identification) of the reference Matrix.


test_res

public int[] test_res
Mantains at the pos "i" the results of the test "i"


config

public Configuration config
The Workspace config

Constructor Detail

Workspace

public Workspace(java.lang.String wsName,
                 java.lang.String wsInfo,
                 java.lang.String wsMatName,
                 Configuration wsCnf)
          throws DataException
Constructor given the reference Matrix

Parameters:
wsName -
wsInfo -
wsMatName -
wsCnf -
Throws:
DataException
Method Detail

getDefaultName

public static java.lang.String getDefaultName()
Generates a default name for a new Workspace using a timestamp

Returns:
Generated name