[kepler-dev] unique id generation

Derik Barseghian barseghian at nceas.ucsb.edu
Wed Oct 13 14:35:14 PDT 2010


Hi Michal,

Sorry, I can't think of a way.
We should create an LSIDGenerator actor to do this, it would be useful.

Derik

On Oct 13, 2010, at 1:06 PM, Michal Owsiak wrote:

> Is there any way to use this class from the workflow?
>
> I don't want to create new actor, I'd like to use Kepler's features  
> only. Is there any way to invoke methods of this class (e.g. from  
> Expression)?
>
> Cheers
>
> Michal
>
>> Hi Michal,
>>
>> Kepler uses "Kepler-LSIDs" for unique ids quite extensively now:
>> https://kepler-project.org/developers/teams/framework/kepler-life-science-identifiers-keplerlsid/?searchterm=lsids
>>
>>
>> We even use them in filenames in some instances, e.g. workflow files
>> within KARs.
>> LSIDGenerator might be of interest to you.
>>
>> Derik
>>
>> On Oct 13, 2010, at 12:53 PM, Michal Owsiak wrote:
>>
>>> In fact I am looking for some way of creating unique values that can
>>> be used for file names.
>>>
>>> UUID class generates unique values that can be easily converted to
>>> strings.
>>>
>>> In fact, I have my own actor that generates unique ids using UUID
>>> class, however I am looking for something that is built into Kepler.
>>>
>>> Cheers
>>>
>>> Michal
>>>
>>>>
>>>> I'm not sure how unique you need it to be, but
>>>> NamedObj.uniqueName() is designed to give a name to a
>>>> Ptolemy object that is unique with a scope of names.
>>>>
>>>> Edward
>>>>
>>>>
>>>> On 10/13/10 1:34 AM, Michal Owsiak wrote:
>>>>> Hello all,
>>>>>
>>>>> I have simple question related to ID generation.
>>>>>
>>>>> Is there any mechanism/actor, that can generate unique id?
>>>>>
>>>>> I am looking for something similar to:
>>>>>
>>>>>
>>>>> java.util.UUID.randomUUID().toString();
>>>>>
>>>>> Thanks in advance
>>>>>
>>>>> Cheers
>>>>>
>>>>> Michal
>>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Kepler-dev mailing list
>>>> Kepler-dev at kepler-project.org
>>>> http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev
>>>
>>>
>>> --
>>> Michal Owsiak <michal.owsiak at man.poznan.pl>
>>>
>>> Institute of Bioorganic Chemistry PAS
>>> Poznan Supercomputing and Networking Center
>>> Noskowskiego 12/14, 61-704 Poznan, POLAND
>>>
>>> http://www.man.poznan.pl
>>> _______________________________________________
>>> Kepler-dev mailing list
>>> Kepler-dev at kepler-project.org
>>> http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev
>>
>> _______________________________________________
>> Kepler-dev mailing list
>> Kepler-dev at kepler-project.org
>> http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev
>>
>
>
> -- 
> Michal Owsiak <michal.owsiak at man.poznan.pl>
>
> Institute of Bioorganic Chemistry PAS
> Poznan Supercomputing and Networking Center
> Noskowskiego 12/14, 61-704 Poznan, POLAND
>
> http://www.man.poznan.pl



More information about the Kepler-dev mailing list