public class MultiplexerData extends GPData
| Modifier and Type | Field and Description |
|---|---|
long[] |
dat_11
An array of 32 longs for Multiplexer-11 data
|
byte |
dat_3
A byte for Multiplexer-3 data
|
long |
dat_6
A long for Multiplexer-6 data
|
static int |
MULTI_11_BITLENGTH
The length of an atomic data element in Multiplexer-11 (a long)
|
static int |
MULTI_11_NUM_BITSTRINGS
The number of atomic elements in Multiplexer-11 comprising one string (32)
|
static int |
MULTI_3_BITLENGTH
The length of an atomic data element in Multiplexer-3 (a byte)
|
static int |
MULTI_6_BITLENGTH
The length of an atomic data element in Multiplexer-6 (a long)
|
byte |
status
A byte indicating the number of Dn in this problem
|
static byte |
STATUS_11
The number of Dn in Multiplexer-11
|
static byte |
STATUS_3
The number of Dn in Multiplexer-3
|
static byte |
STATUS_6
The number of Dn in Multiplexer-6
|
Stack |
tmp
A stack of available long arrays for popDat11/pushDat11
|
| Constructor and Description |
|---|
MultiplexerData() |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Creates a new individual cloned from a prototype,
and suitable to begin use in its own evolutionary
context.
|
void |
copyTo(GPData gpd)
Modifies gpd so that gpd is equivalent to us.
|
long[] |
popDat11()
Pops a dat_11 off of the stack; if the stack is empty, creates a new dat_11 and returns that.
|
void |
pushDat11(long[] l)
Pushes a dat_11 onto the stack
|
defaultBase, setuppublic Stack tmp
public static final byte STATUS_3
public static final byte STATUS_6
public static final byte STATUS_11
public static final int MULTI_3_BITLENGTH
public static final int MULTI_6_BITLENGTH
public static final int MULTI_11_BITLENGTH
public static final int MULTI_11_NUM_BITSTRINGS
public long[] dat_11
public long dat_6
public byte dat_3
public byte status
public long[] popDat11()
public void pushDat11(long[] l)
public Object clone()
PrototypeTypically this should be a full "deep" clone. However, you may share certain elements with other objects rather than clone hem, depending on the situation:
Implementations.
public Object clone()
{
try
{
return super.clone();
}
catch ((CloneNotSupportedException e)
{ throw new InternalError(); } // never happens
}
public Object clone()
{
try
{
MyObject myobj = (MyObject) (super.clone());
// put your deep-cloning code here...
}
catch ((CloneNotSupportedException e)
{ throw new InternalError(); } // never happens
return myobj;
}
public Object clone()
{
MyObject myobj = (MyObject) (super.clone());
// put your deep-cloning code here...
return myobj;
}
public void copyTo(GPData gpd)
GPDataCopyright © 2014 Evolutionary Computation Laboratory at George Mason University. All rights reserved.