moos.ssds.model
Interface IDevice

All Superinterfaces:
IDescription, ResourceOwner, java.io.Serializable, ValueObject
All Known Implementing Classes:
Device

public interface IDevice
extends ResourceOwner, java.io.Serializable, IDescription, ValueObject

Author:
kgomes To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments

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()
           
 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
 

Method Detail

addDeployment

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

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

Returns:
The allDeployments value

getContact

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

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

Returns:
The mfgModel value

getMfgName

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

Returns:
The mfgName value

getMfgSerialNumber

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

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

Returns:
The person value

getPersonId

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

Returns:
The personId value

getPreferredDeploymentRole

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

Returns:
The preferredDeploymentRole value

getType

public java.lang.String getType()

listDeployments

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

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)

setDeployments

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


setContact

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

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

Parameters:
id - The new id value

setMfgModel

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

Parameters:
mfgModel - The new mfgModel value

setMfgName

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

Parameters:
mfgName - The new mfgName value

setMfgSerialNumber

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

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

Parameters:
property - The new person value

setPersonId

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

Parameters:
property - The new personId value

getResources

public java.util.Collection getResources()

setResources

public void setResources(java.util.Collection resources)

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.

Parameters:
preferredDeploymentRole -
See Also:
Deployment

setType

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

Parameters:
type - The new type value

toString

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

Returns:
Description of the Return Value