[kepler-users] Enforcing array subtypes.

Jianwu Wang jianwu at sdsc.edu
Wed Jul 21 14:02:21 PDT 2010


Hi Thomas,

     Sorry, I don't quite get your question. Would you please explain it 
more using concrete examples?


Best wishes

Sincerely yours

Jianwu Wang
jianwu at sdsc.edu
http://users.sdsc.edu/~jianwu/

Assistant Project Scientist
Scientific Workflow Automation Technologies (SWAT) Laboratory
San Diego Supercomputer Center
University of California, San Diego
San Diego, CA, U.S.A.


On 7/21/2010 12:32 PM, Thomas M. Parris wrote:
> Greetings,
>
> I'm writing an actor with a PortParameter that is an array with a default
> value of {1}.  So far so good.
>
> Is there a way to ensure that the value is also a vector (1-dimensional as
> opposed to higher order nesting) and does not exceed integer?  At some
> point, I could also see wanting to set a minimum and maximum lengths of the
> vector (but that is not required for now).
>
> I know how to do similar things with scalars, but not arrays.
>
> While I can set the initial value and type to array with:
>
> 	portparameter.setExpression("{1}");
>
> I can't seem to fnd a method that would be more specific than that short of
> testing what I get in the actor and throwing an exception.
>
> Many thanks in advance for any help provided,
> Tom
> ----------------------------------------------------
> Thomas M. Parris
> Vice President
> ISciences, LLC
> ----------------------------------------------------
>
> _______________________________________________
> Kepler-users mailing list
> Kepler-users at kepler-project.org
> http://mercury.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users
>    



More information about the Kepler-users mailing list