Print

Print


You can't have set types which are members of set types.  Only atomic types may be members of set types.

Sean

On May 23, 2013, at 6:09 PM, Bojan Janisch wrote:

> Hello everyone,
> 
> how do I set a GPTypeSet as a child in another GPTypeSet?
> 
> I have the following constraints defined:
> 
> gp.type.a.size = 2
> gp.type.a.0.name = boolean
> gp.type.a.1.name = nil
> 
> gp.type.s.size = 5
> 
> gp.type.s.0.name = condition
> gp.type.s.0.size = 4
> gp.type.s.0.member.0 = not
> gp.type.s.0.member.1 = exist
> gp.type.s.0.member.2 = and
> gp.type.s.0.member.3 = eval
> 
> gp.type.s.1.name = not
> gp.type.s.1.size = 3
> gp.type.s.1.member.0 = eval
> gp.type.s.1.member.1 = exist
> gp.type.s.1.member.2 = and
> 
> gp.type.s.2.name = exist
> gp.type.s.2.size = 1
> gp.type.s.2.member.0 = boolean
> 
> gp.type.s.3.name = and
> gp.type.s.3.size = 1
> gp.type.s.3.member.0 = condition
> 
> gp.type.s.4.name = eval
> gp.type.s.4.size = 1
> gp.type.s.4.member.0 = boolean
> 
> My atomic types are boolean and nil. Also I have 5 more or less different typesets which are needed for my rules.
> 
> But each time I get the same Error:
> 
> Threads:  breed/1 eval/1
> Seed: -791252858 
> Job: 0
> Setting up
> Processing GP Types
> ERROR:
> The GP type "not" could not be found.
> FATAL ERROR:
> Atomic type member #0 of GPSetType condition is not a GPAtomicType.
> PARAMETER: gp.type.s.0.member.0
> 
> Well it explains well why it crashed, but I want to know HOW do I define a set as a child in a set. Maybe someone got a solution?
> 
> Greetings
> 
> Bojan
>