Variable class with subtype

View: New views
2 Messages — Rating Filter:   Alert me  

Variable class with subtype

by Simone Bronzin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

does an implementation of org.jgap.gp.terminal.Variable that uses a  
a_subReturnType exist? I need to discriminate between two different  
double Variable (one represents time and one a size) to avoid  
something like If( time < size) in my programs. Did I miss something?

thanks all

--

Simone Bronzin
Unitary
Executive

mobile: +39.3939459672



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
jgap-users mailing list
jgap-users@...
https://lists.sourceforge.net/lists/listinfo/jgap-users

Re: Variable class with subtype

by Klaus Meffert-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Simone,

You can easily extend the implementation of Variable to support a
subReturnType.
Please see class Terminal in the same package for an example, it's basically
passing the sub return type to the super class of Variable (which is the
same super class as for Terminal).

Best

Klaus
www.klaus-meffert.com

 

> -----Original Message-----
> From: Simone Bronzin [mailto:simone.bronzin@...]
> Sent: Tuesday, August 25, 2009 3:34 PM
> To: jgap-users@...
> Subject: [jgap-users] Variable class with subtype
>
> Hi all,
>
> does an implementation of org.jgap.gp.terminal.Variable that
> uses a a_subReturnType exist? I need to discriminate between
> two different double Variable (one represents time and one a
> size) to avoid something like If( time < size) in my
> programs. Did I miss something?
>
> thanks all
>
> --
>
> Simone Bronzin
> Unitary
> Executive
>
> mobile: +39.3939459672
>
>
>
> --------------------------------------------------------------
> ----------------
> Let Crystal Reports handle the reporting - Free Crystal
> Reports 2008 30-Day trial. Simplify your report design,
> integration and deployment - and focus on what you do best,
> core application coding. Discover what's new with Crystal
> Reports now.  http://p.sf.net/sfu/bobj-july 
> _______________________________________________
> jgap-users mailing list
> jgap-users@...
> https://lists.sourceforge.net/lists/listinfo/jgap-users


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
jgap-users mailing list
jgap-users@...
https://lists.sourceforge.net/lists/listinfo/jgap-users