ec.gp
Class GPAtomicType

java.lang.Object
  extended byec.gp.GPType
      extended byec.gp.GPAtomicType
All Implemented Interfaces:
Clique, java.io.Serializable, Setup

public final class GPAtomicType
extends GPType

A GPAtomicType is a simple, atomic GPType. For more information, see GPType.

See Also:
GPType, Serialized Form

Field Summary
 
Fields inherited from class ec.gp.GPType
all, name, numAtomicTypes, numSetTypes, P_ATOMIC, P_NAME, P_SET, P_SIZE, type
 
Constructor Summary
GPAtomicType()
          Don't use this constructor unless you call setup(...) immediately after it.
GPAtomicType(java.lang.String n)
          Use this constructor for GPAtomic Type unless you know what you're doing
 
Method Summary
 boolean compatibleWith(GPType t)
          Am I compatible with ("fit" with) t? For two atomic types, this is done by direct pointer equality.
 
Methods inherited from class ec.gp.GPType
postProcessTypes, setup, setupTypes, toString, typeFor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GPAtomicType

public GPAtomicType(java.lang.String n)
Use this constructor for GPAtomic Type unless you know what you're doing


GPAtomicType

public GPAtomicType()
Don't use this constructor unless you call setup(...) immediately after it.

Method Detail

compatibleWith

public final boolean compatibleWith(GPType t)
Description copied from class: GPType
Am I compatible with ("fit" with) t? For two atomic types, this is done by direct pointer equality. For two set types, this is done by determining if the intersection is nonempty. A set type is compatible with an atomic type if it contains the atomic type in its set.

Specified by:
compatibleWith in class GPType