|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| 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 |
| Method Detail |
public void addEvent(IEvent event)
event - 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.
dataContainer - The dataContainer to be added.public void addOutput(IDataContainer dataContainer)
dataContainer - 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()
public java.lang.Long getContactId()
public 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()
public java.util.Date getStartDate()
getStartDate in interface IDateRangepublic java.util.Collection listAllOutputs()
DataContainer 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();
- Returns:
- Collection of all products derived from the
DataContainers available
in listOutputs()
public java.util.Collection listEvents()
public java.util.Collection listInputs()
Collection 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.
Collection of DataContainerspublic IDataContainer listBestOutput()
public java.util.Collection listResources()
listResources in interface ResourceOwnerpublic void removeEvent(IEvent event)
event - Description of the Parameterpublic void removeInput(IDataContainer dataContainer)
dataContainer - The dataContainer to be removedpublic void removeOutput(IDataContainer dataContainer)
dataContainer - 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)
contact - The new contact valuepublic void setContactId(java.lang.Long contactId)
public 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)
ojbConcreteClass - 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 | |||||||||