Okay, let's say you have a terminal called Value which returns a value.
And you have a nonterminal called (Test -bool-) which takes a bool.
What's to stop your GP system from trying to do (Test Value)? Value
will write to ValueData.value, but Test will be reading from ValueData.bool.
It's one thing to enable your GPData to hold multiple items. It's quite
another thing to restrict certain children and parents so that they
communicate with one another properly.
Eric B wrote:
> First of all thanks for the quick and friendly reply.
>> But you need to keep in mind
>> that you may need to add explicit typing (see GPType) to make certain
>> that various nodes connect together in the tree in such a way that if
>> one writes to ValueData.bool to hand to his parent, the parent's not
>> expecting a ValueData.value.
> I doubt this can happen. First of all ValueData.bool is a boolean and
> ValueData.value is a double so I can't really mix them up. Eclipse will make
> sure of that ;-)
> Secondly, I KNOW that ValueData.bool is used for testing properties and
> ValueData.value is the result of an evaluation. So that's another reason why
> I won't mix both up.
> (This reply is just to make sure I fully understand what you mean.)