|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmoos.ssds.model.DataProducer
A Producer generates DataContainers
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 2003 MBARI. MBARI Proprietary Information. All rights reserved.
| Field Summary | |
protected java.lang.String |
ojbConcreteClass
Description of the Field |
| Constructor Summary | |
DataProducer()
Default contructor required for XML marshalling unmarshalling. |
|
| Method Summary | |
void |
addEvent(IEvent event)
Adds a feature to the Event attribute of the DataProducer object |
void |
addInput(IDataContainer dataContainer)
Add a dataContainer as a source of data used by the producer. |
void |
addOutput(IDataContainer dataContainer)
Add a dataContainer as a Product generated by this producer. |
void |
addResource(IResource dr)
Adds a feature to the Resource attribute of the DataProducer object |
IPerson |
getContact()
Gets the contact attribute of the DataProducer object |
java.lang.Long |
getContactId()
|
IDateRange |
getDateRange()
Gets the dateRange attribute of the DataProducer object |
java.lang.String |
getDescription()
Gets the description attribute of the DataProducer object |
java.util.Date |
getEndDate()
Gets the endDate attribute of the DataProducer object |
java.lang.Long |
getId()
Gets the id attribute of the DataProducer object |
java.lang.String |
getName()
Gets the name attribute of the DataProducer object |
java.lang.String |
getOjbConcreteClass()
Gets the ojbConcreteClass attribute of the DataProducer object |
java.util.Date |
getStartDate()
Gets the startDate attribute of the DataProducer object |
java.util.Collection |
listAllOutputs()
|
IDataContainer |
listBestOutput()
For the case when a client (such as HOOVES OutputTabShower) wants just the best output to use. |
java.util.Collection |
listDerivedOutputs()
Returns a list of derived products. |
java.util.Collection |
listEvents()
Description of the Method |
java.util.Collection |
listInputs()
Access to all the DataContainers used by this producer. |
java.util.Collection |
listOutputs()
List all the DataContainers produced by a single
DataProducer. |
java.util.Collection |
listResources()
List all the configuration files associatied with this device |
void |
removeEvent(IEvent event)
Description of the Method |
void |
removeInput(IDataContainer dataContainer)
Remove a dataCOntainer from the list of data sources used by a Producer. |
void |
removeOutput(IDataContainer dataContainer)
Remove a dataContainer from the list of products generated by this producer Do NOT get tht output collection and remove direclty from it. |
void |
removeResource(IResource dr)
Description of the Method |
void |
setContact(IPerson contact)
Sets the contact attribute of the DataProducer object |
void |
setContactId(java.lang.Long contactId)
|
void |
setDescription(java.lang.String description)
Sets the description attribute of the DataProducer object |
void |
setEndDate(java.util.Date endDate)
Sets the endDate attribute of the DataProducer object |
void |
setId(java.lang.Long id)
Sets the id attribute of the DataProducer object |
void |
setName(java.lang.String name)
Sets the name attribute of the DataProducer object |
void |
setOjbConcreteClass(java.lang.String ojbConcreteClass)
Sets the ojbConcreteClass attribute of the DataProducer object |
void |
setStartDate(java.util.Date startDate)
Sets the startDate attribute of the DataProducer object |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String ojbConcreteClass
| Constructor Detail |
public DataProducer()
| Method Detail |
public void addEvent(IEvent event)
addEvent in interface IDataProducerevent - The feature to be added to the Event attributepublic void addInput(IDataContainer dataContainer)
listInputs()and add directly to it!! Use this method only.
listInputs() returns a copy of the internal collection of
inputs.
addInput in interface IDataProducerdataContainer - The dataContainer to be added.public void addOutput(IDataContainer dataContainer)
addOutput in interface IDataProducerdataContainer - The container to be listed as a product of this producer.public void addResource(IResource dr)
addResource in interface ResourceOwnerdr - The feature to be added to the Resource attributepublic IPerson getContact()
getContact in interface IDataProducerpublic java.lang.Long getContactId()
getContactId in interface IDataProducerpublic IDateRange getDateRange()
getDateRange in interface IDateRangepublic java.lang.String getDescription()
getDescription in interface IDescriptionpublic java.util.Date getEndDate()
getEndDate in interface IDateRangepublic java.lang.Long getId()
getId in interface ValueObjectpublic java.lang.String getName()
getName in interface IDescriptionpublic java.lang.String getOjbConcreteClass()
getOjbConcreteClass in interface IDataProducerpublic java.util.Date getStartDate()
getStartDate in interface IDateRangepublic java.util.Collection listAllOutputs()
listAllOutputs in interface IDataProducerDataContainer and its derived Outputs.public java.util.Collection listDerivedOutputs()
DataContainers which are derived from the outputs (which are
also DataContainers. For Example:
// p1 is the container we're really interested in
// We'll add c1 as an output
DataProducer p1 = new DataProducer();
DataContainer c1 = new DataContainer();
p1.addOutput(c1);
// Another dataproducer uses c1 as an input and c2 as an output
DataProcuder p2 = new DataProducer();
DataContainer c2 = new DataContainer();
p2.addInput(c1);
p2.addOutput(c2);
// Let's go back to our original DataProducer, p1
// This should return a collection containing only c2
Collection prods = p1.listDerivedProducts();
- Specified by:
listDerivedOutputs in interface IDataProducer
- Returns:
- Collection of all products derived from the
DataContainers available
in listOutputs()
public IDataContainer listBestOutput()
listBestOutput in interface IDataProducerpublic java.util.Collection listEvents()
listEvents in interface IDataProducerpublic java.util.Collection listInputs()
listInputs in interface IDataProducerCollection of DataContainerspublic java.util.Collection listOutputs()
DataContainers produced by a single
DataProducer. This returns a copy of the internal Collection. So adding
or removing from the Collection will not affect the internal list. Use
addOutput or removeOutput to change the inputs.
listOutputs in interface IDataProducerCollection of DataContainerspublic java.util.Collection listResources()
listResources in interface ResourceOwnerpublic void removeEvent(IEvent event)
removeEvent in interface IDataProducerevent - Description of the Parameterpublic void removeInput(IDataContainer dataContainer)
removeInput in interface IDataProducerdataContainer - The dataContainer to be removedpublic void removeOutput(IDataContainer dataContainer)
removeOutput in interface IDataProducerdataContainer - The dataContainer to be removed from the product listpublic void removeResource(IResource dr)
removeResource in interface ResourceOwnerdr - Description of the Parameterpublic void setContact(IPerson contact)
setContact in interface IDataProducercontact - The new contact valuepublic void setContactId(java.lang.Long contactId)
setContactId in interface IDataProducerpublic void setDescription(java.lang.String description)
setDescription in interface IDescriptiondescription - The new description valuepublic void setEndDate(java.util.Date endDate)
setEndDate in interface IDateRangeendDate - The new endDate valuepublic void setId(java.lang.Long id)
setId in interface ValueObjectid - The new id valuepublic void setName(java.lang.String name)
setName in interface IDescriptionname - The new name valuepublic void setOjbConcreteClass(java.lang.String ojbConcreteClass)
setOjbConcreteClass in interface IDataProducerojbConcreteClass - The new ojbConcreteClass valuepublic void setStartDate(java.util.Date startDate)
setStartDate in interface IDateRangestartDate - The new startDate value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||