moos.ssds.model
Class Device

java.lang.Object
  extended bymoos.ssds.model.Device
All Implemented Interfaces:
IDescription, IDevice, ResourceOwner, java.io.Serializable, ValueObject

public class Device
extends java.lang.Object
implements ResourceOwner, java.io.Serializable, IDescription, ValueObject, IDevice


Version:
: $Revision: 1.4 $

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement. This information should not be published or distributed to third parties without specific written permission from MBARI.


Copyright 2002 MBARI.
MBARI Proprietary Information. All rights reserved.



Author:
: $Author: kgomes $
See Also:
Serialized Form

Constructor Summary
Device()
          Constructor for the Device object
Device(long ID)
          Constructor for the Device object
Device(java.lang.Long ID)
          Constructor for the Device object
 
Method Summary
 void addDeployment(IDeployment d)
          Adds a feature to the Deployment attribute of the Device object
 void addResource(IResource dr)
          Adds a feature to the Resource attribute of the Device object
 IPerson getContact()
          Gets the contact attribute of the Device object
 java.util.Collection getDeployments()
          Gets the allDeployments attribute of the Device object
 java.lang.String getDescription()
          Gets the description attribute of the Device object
 java.lang.Long getId()
          Gets the id attribute of the Device object
 java.lang.String getMfgModel()
          Gets the mfgModel attribute of the Device object
 java.lang.String getMfgName()
          Gets the mfgName attribute of the Device object
 java.lang.String getMfgSerialNumber()
          Gets the mfgSerialNumber attribute of the Device object
 java.lang.String getName()
          Gets the name attribute of the Device object
 IPerson getPerson()
          Gets the person attribute of the Device object
 java.lang.Long getPersonId()
          Gets the personId attribute of the Device object
 java.lang.String getPreferredDeploymentRole()
          Gets the preferredDeploymentRole attribute of the Device object
 java.util.Collection getResources()
           
 java.lang.String getType()
          Gets the type attribute of the Device object
 java.util.Collection listDeployments()
          Description of the Method
 java.util.Collection listResources()
          List all the configuration files associatied with this device
 void removeDeployment(IDeployment d)
           
 void removeResource(IResource dr)
          Description of the Method
 void setContact(IPerson contact)
          Sets the contact attribute of the Device object
 void setDeployments(java.util.Collection deployments)
          Sets the allDeployments attribute of the Device object
 void setDescription(java.lang.String description)
          Sets the description attribute of the Device object
 void setId(long id)
          Sets the id attribute of the Device object
 void setId(java.lang.Long id)
          Sets the id attribute of the Device object
 void setMfgModel(java.lang.String mfgModel)
          Sets the mfgModel attribute of the Device object
 void setMfgName(java.lang.String mfgName)
          Sets the mfgName attribute of the Device object
 void setMfgSerialNumber(java.lang.String mfgSerialNumber)
          Sets the mfgSerialNumber attribute of the Device object
 void setName(java.lang.String name)
          Sets the name attribute of the Device object
 void setPerson(IPerson property)
          Sets the person attribute of the Device object
 void setPersonId(java.lang.Long property)
          Sets the personId attribute of the Device object
 void setPreferredDeploymentRole(java.lang.String preferredDeploymentRole)
          Sets the preferred Deployment Role for this device.
 void setResources(java.util.Collection resources)
           
 void setType(java.lang.String type)
          Sets the type attribute of the Device object
 java.lang.String toString()
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Device

public Device()
Constructor for the Device object


Device

public Device(long ID)
Constructor for the Device object

Parameters:
ID - Description of the Parameter

Device

public Device(java.lang.Long ID)
Constructor for the Device object

Parameters:
ID - Description of the Parameter
Method Detail

addDeployment

public void addDeployment(IDeployment d)
Adds a feature to the Deployment attribute of the Device object

Specified by:
addDeployment in interface IDevice
Parameters:
d - The feature to be added to the Deployment attribute

addResource

public void addResource(IResource dr)
Adds a feature to the Resource attribute of the Device object

Specified by:
addResource in interface ResourceOwner
Parameters:
dr - The feature to be added to the Resource attribute

getDeployments

public java.util.Collection getDeployments()
Gets the allDeployments attribute of the Device object

Specified by:
getDeployments in interface IDevice
Returns:
The allDeployments value

getContact

public IPerson getContact()
Gets the contact attribute of the Device object

Specified by:
getContact in interface IDevice
Returns:
The contact value

getDescription

public java.lang.String getDescription()
Gets the description attribute of the Device object

Specified by:
getDescription in interface IDescription
Returns:
The description value

getId

public java.lang.Long getId()
Gets the id attribute of the Device object

Specified by:
getId in interface ValueObject
Returns:
The id value

getMfgModel

public java.lang.String getMfgModel()
Gets the mfgModel attribute of the Device object

Specified by:
getMfgModel in interface IDevice
Returns:
The mfgModel value

getMfgName

public java.lang.String getMfgName()
Gets the mfgName attribute of the Device object

Specified by:
getMfgName in interface IDevice
Returns:
The mfgName value

getMfgSerialNumber

public java.lang.String getMfgSerialNumber()
Gets the mfgSerialNumber attribute of the Device object

Specified by:
getMfgSerialNumber in interface IDevice
Returns:
The mfgSerialNumber value

getName

public java.lang.String getName()
Gets the name attribute of the Device object

Specified by:
getName in interface IDescription
Returns:
The name value

getPerson

public IPerson getPerson()
Gets the person attribute of the Device object

Specified by:
getPerson in interface IDevice
Returns:
The person value

getPersonId

public java.lang.Long getPersonId()
Gets the personId attribute of the Device object

Specified by:
getPersonId in interface IDevice
Returns:
The personId value

getPreferredDeploymentRole

public java.lang.String getPreferredDeploymentRole()
Gets the preferredDeploymentRole attribute of the Device object

Specified by:
getPreferredDeploymentRole in interface IDevice
Returns:
The preferredDeploymentRole value

getType

public java.lang.String getType()
Gets the type attribute of the Device object

Specified by:
getType in interface IDevice
Returns:
The type value

listDeployments

public java.util.Collection listDeployments()
Description of the Method

Specified by:
listDeployments in interface IDevice
Returns:
Description of the Return Value

listResources

public java.util.Collection listResources()
List all the configuration files associatied with this device

Specified by:
listResources in interface ResourceOwner
Returns:
Description of the Return Value

removeResource

public void removeResource(IResource dr)
Description of the Method

Specified by:
removeResource in interface ResourceOwner
Parameters:
dr - Description of the Parameter

removeDeployment

public void removeDeployment(IDeployment d)
Specified by:
removeDeployment in interface IDevice

setDeployments

public void setDeployments(java.util.Collection deployments)
Sets the allDeployments attribute of the Device object

Specified by:
setDeployments in interface IDevice

setContact

public void setContact(IPerson contact)
Sets the contact attribute of the Device object

Specified by:
setContact in interface IDevice
Parameters:
contact - The new contact value

setDescription

public void setDescription(java.lang.String description)
Sets the description attribute of the Device object

Specified by:
setDescription in interface IDescription
Parameters:
description - The new description value

setId

public void setId(java.lang.Long id)
Sets the id attribute of the Device object

Specified by:
setId in interface ValueObject
Parameters:
id - The new id value

setId

public void setId(long id)
Sets the id attribute of the Device object

Specified by:
setId in interface IDevice
Parameters:
id - The new id value

setMfgModel

public void setMfgModel(java.lang.String mfgModel)
Sets the mfgModel attribute of the Device object

Specified by:
setMfgModel in interface IDevice
Parameters:
mfgModel - The new mfgModel value

setMfgName

public void setMfgName(java.lang.String mfgName)
Sets the mfgName attribute of the Device object

Specified by:
setMfgName in interface IDevice
Parameters:
mfgName - The new mfgName value

setMfgSerialNumber

public void setMfgSerialNumber(java.lang.String mfgSerialNumber)
Sets the mfgSerialNumber attribute of the Device object

Specified by:
setMfgSerialNumber in interface IDevice
Parameters:
mfgSerialNumber - The new mfgSerialNumber value

setName

public void setName(java.lang.String name)
Sets the name attribute of the Device object

Specified by:
setName in interface IDescription
Parameters:
name - The new name value

setPerson

public void setPerson(IPerson property)
Sets the person attribute of the Device object

Specified by:
setPerson in interface IDevice
Parameters:
property - The new person value

setPersonId

public void setPersonId(java.lang.Long property)
Sets the personId attribute of the Device object

Specified by:
setPersonId in interface IDevice
Parameters:
property - The new personId value

getResources

public java.util.Collection getResources()
Specified by:
getResources in interface IDevice

setResources

public void setResources(java.util.Collection resources)
Specified by:
setResources in interface IDevice

setPreferredDeploymentRole

public void setPreferredDeploymentRole(java.lang.String preferredDeploymentRole)
Sets the preferred Deployment Role for this device. Deployment roles include Deployment.PLATFORM_ROLE, Deployment.INSTRUMENT_ROLE and Deployment.SENSOR_ROLE. This role is overridden by what is set in Deployment.

Specified by:
setPreferredDeploymentRole in interface IDevice
Parameters:
preferredDeploymentRole -
See Also:
Deployment

setType

public void setType(java.lang.String type)
Sets the type attribute of the Device object

Specified by:
setType in interface IDevice
Parameters:
type - The new type value

toString

public java.lang.String toString()
Description of the Method

Specified by:
toString in interface IDevice
Returns:
Description of the Return Value