moos.ssds.model
Interface ISoftware

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

public interface ISoftware
extends java.io.Serializable, IDescription, ResourceOwner, 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 addProcessRun(IProcessRun processRun)
          This method adds a process run to the list of process runs that use this software
 void addResource(IResource dr)
           
 IPerson getContact()
          Gets the contact attribute of the Software object
 java.lang.String getDescription()
          Gets the description attribute of the Software object
 java.lang.Long getId()
          Gets the id attribute of the Software object
 java.lang.String getName()
          Gets the name attribute of the Software object
 IPerson getPerson()
          Gets the person attribute of the Software object
 java.lang.Long getPersonId()
          Gets the personId attribute of the Software object
 java.util.Collection getProcessRuns()
          Gets the processRuns attribute of the Software object
 java.net.URL getUrl()
          Gets the url of the Software object
 java.lang.String getVersion()
          Gets the version attribute of the Software object
 java.util.Collection listResources()
          List all the resources associatied with this device
 void removeResource(IResource dr)
           
 void setContact(IPerson contact)
          Sets the contact attribute of the Software object
 void setDescription(java.lang.String description)
          Sets the description attribute of the Software object
 void setId(java.lang.Long id)
          Sets the id attribute of the Software object
 void setName(java.lang.String name)
          Sets the name attribute of the Software object
 void setPerson(IPerson person)
          Sets the person attribute of the Software object
 void setPersonId(java.lang.Long personId)
          Sets the personId attribute of the Software object
 void setProcessRuns(java.util.Collection allProcessRuns)
          Sets the processRuns attribute of the Software object
 void setUrl(java.net.URL Url)
          Sets the url of the Software object
 void setVersion(java.lang.String version)
          Sets the version attribute of the Software object
 

Method Detail

addResource

public void addResource(IResource dr)
Specified by:
addResource in interface ResourceOwner
Parameters:
dr - The resource to add to this owner. IResourceOwners can have more than one resource.

getContact

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

Returns:
The contact value

getDescription

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

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

getId

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

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

getName

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

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

getPerson

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

Returns:
The person value

getPersonId

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

Returns:
The personId value

getProcessRuns

public java.util.Collection getProcessRuns()
Gets the processRuns attribute of the Software object

Returns:
The processRuns value

getUrl

public java.net.URL getUrl()
Gets the url of the Software object

Returns:
Typically the CVS Web url

getVersion

public java.lang.String getVersion()
Gets the version attribute of the Software object

Returns:
The version value

listResources

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

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

removeResource

public void removeResource(IResource dr)
Specified by:
removeResource in interface ResourceOwner
Parameters:
dr - The resource to remove from this owner

setContact

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

Parameters:
contact - The new contact value

setDescription

public void setDescription(java.lang.String description)
Sets the description attribute of the Software 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 Software object

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

setName

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

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

setPerson

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

Parameters:
person - The new person value

setPersonId

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

Parameters:
personId - The new personId value

setProcessRuns

public void setProcessRuns(java.util.Collection allProcessRuns)
Sets the processRuns attribute of the Software object

Parameters:
allProcessRuns - The new processRuns value

setUrl

public void setUrl(java.net.URL Url)
Sets the url of the Software object


setVersion

public void setVersion(java.lang.String version)
Sets the version attribute of the Software object

Parameters:
version - The new version value

addProcessRun

public void addProcessRun(IProcessRun processRun)
This method adds a process run to the list of process runs that use this software

Parameters:
processRun - is the ProcessRun to add to the collection of processRuns