Last update: 2011-06-23

org.proteios.core
Class InstrumentConfiguration<D extends InstrumentConfigurationData>

java.lang.Object
  extended by org.proteios.core.BasicItem<D>
      extended by org.proteios.core.OwnedItem<D>
          extended by org.proteios.core.SharedItem<D>
              extended by org.proteios.core.CommonItem<D>
                  extended by org.proteios.core.AnnotatedItem<D>
                      extended by org.proteios.core.InstrumentConfiguration<D>
All Implemented Interfaces:
AccessControlled, Annotatable, FileAttachable, Identifiable, Nameable, Ownable, Removable, Shareable
Direct Known Subclasses:
HardwareConfiguration, SoftwareConfiguration

public abstract class InstrumentConfiguration<D extends InstrumentConfigurationData>
extends AnnotatedItem<D>
implements FileAttachable

This is the base class for for the two types of instrumentconfigurations: HardwareConfiguration and SoftwareConfiguration.

Version:
2.0
Author:
Olle
See Also:
AnnotatedItem
Last modified
$Date: 2006-05-31 12:33:12Z $

Field Summary
static int MAX_DATETIME_LENGTH
          The maximum length of the dateTime string that can be stored in the database.
 
Fields inherited from interface org.proteios.core.Nameable
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
 
Method Summary
 String getDateTime()
          Get the dateTime string of the instrumentconfiguration.
 File getFile()
          Get the protocol File for the configuration.
 void setDateTime(String dateTime)
          Set the dateTime string of the instrumentconfiguration.
 void setFile(File file)
          Set the protocol File for the configuration.
 
Methods inherited from class org.proteios.core.CommonItem
getDescription, getName, isRemoved, setDescription, setName, setRemoved
 
Methods inherited from class org.proteios.core.SharedItem
getItemKey, getProjectKey, isShared, setItemKey, setProjectKey
 
Methods inherited from class org.proteios.core.OwnedItem
getOwner, setOwner
 
Methods inherited from class org.proteios.core.BasicItem
checkPermission, equals, getDbControl, getId, getPermissions, getSessionControl, getVersion, hashCode, hasPermission, isDetached, isInDatabase, isUsed, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.proteios.core.Identifiable
getId, getType, getVersion
 
Methods inherited from interface org.proteios.core.AccessControlled
checkPermission, hasPermission
 
Methods inherited from interface org.proteios.core.Ownable
getOwner, setOwner
 

Field Detail

MAX_DATETIME_LENGTH

public static final int MAX_DATETIME_LENGTH
The maximum length of the dateTime string that can be stored in the database.

See Also:
setDateTime(String), Constant Field Values
Method Detail

getDateTime

public String getDateTime()
Get the dateTime string of the instrumentconfiguration.

Returns:
The dateTime string for the instrumentconfiguration

setDateTime

public void setDateTime(String dateTime)
                 throws InvalidDataException
Set the dateTime string of the instrumentconfiguration. The value may be null but must not be longer than the value specified by the MAX_DATETIME_LENGTH constant.

Parameters:
dateTime - The new value for the date and time
Throws:
InvalidDataException - If the string is too long

getFile

public File getFile()
             throws BaseException
Get the protocol File for the configuration.

Specified by:
getFile in interface FileAttachable
Returns:
A File object
Throws:
BaseException - If there is another error

setFile

public void setFile(File file)
             throws InvalidDataException
Set the protocol File for the configuration.

Specified by:
setFile in interface FileAttachable
Parameters:
file - The new File item
Throws:
InvalidDataException - If the file is null
BaseException - If there is another error

Last update: 2011-06-23