[kepler-dev] [Bug 2050] - EMLDataSource output as Ptolemy records
Shawn Bowers
sbowers at ucdavis.edu
Thu Apr 7 11:35:05 PDT 2005
Dan Higgins wrote:
> Shawn,
> I am not sure that it is 'incorrect' to have one port per attribute,
> but I do see your point. I think you are just recommending the second
> option I suggested (the record/column array) ? Options for either seem
> useful to me. The column based ports allow the selection of specific
> columns from a table when all the columns are not needed.
Sorry, I didn't really understand what was meant by the record/column
array option listed in the bug ... It wasn't clear to me what that was;
I didn't realize you meant that a tuple is output on a single port.
It seems like there are potentially other problems with one port per
attribute. For example, what if the EML file contains multiple data
sets? I also assume that when one selects just one port p, the operation
is 'select p from r' as opposed to 'select distinct p from r' (the
latter is probably more desirable). This brings up another question:
does the approach limit (or semantically change) the types of queries
that can be posed on the data eminiating from the actor? (For example,
can one still do self-joins, aggregrates, group-by's, havings, and so on?)
shawn
>
> Shawn Bowers wrote:
>
>> bugzilla-daemon at ecoinformatics.org wrote:
>>
>>
>>> http://bugzilla.ecoinformatics.org/show_bug.cgi?id=2050
>>>
>>>
>>>
>>>
>>>
>>> ------- Additional Comments From sbowers at ucdavis.edu 2005-04-07
>>> 09:33 -------
>>> I don't think it is correct to have one port per attribute. This
>>> approach
>>> looses the information that the ports are actually dependent. This
>>> assumes a
>>> particular domain functionality (i.e., that the director knows the
>>> dependency);
>>> but the constraint cannot be captured in Ptolemy's constraint language.
>>>
>>>> From a modeling perspective, it is more appropriate in Ptolemy to
>>>> use a single
>>>
>>> port that outputs a tuple (i.e., a record). Of course, one could
>>> always connect
>>> an array deconstructor after the data set if desired. This approach (of
>>>
>>
>>
>> Sorry: I mean "record dissasembler" not array deconstructor :-)
>>
>>
>>
>>> outputing tuples instead of individual values) follows more closely
>>> the standard
>>> approach used in database systems and makes collection-oriented
>>> dataflows/programming much easier.
>>> _______________________________________________
>>> Kepler-dev mailing list
>>> Kepler-dev at ecoinformatics.org
>>> http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-dev
>>>
>>
>>
>> _______________________________________________
>> Kepler-dev mailing list
>> Kepler-dev at ecoinformatics.org
>> http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-dev
>>
>>
>
>
More information about the Kepler-dev
mailing list