|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectec.gp.GPData
ec.app.multiplexer.MultiplexerData
public class MultiplexerData
This is ugly and complicated because it needs to hold a variety of different-length bitstrings, including temporary ones held while computing subtrees.
| Field Summary | |
|---|---|
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 |
java.util.Stack |
tmp
A stack of available long arrays for popDat11/pushDat11 |
| Fields inherited from class ec.gp.GPData |
|---|
P_GPDATA |
| Constructor Summary | |
|---|---|
MultiplexerData()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Creates a new individual cloned from a prototype, and suitable to begin use in its own evolutionary context. |
GPData |
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 |
| Methods inherited from class ec.gp.GPData |
|---|
defaultBase, setup |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.util.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
| Constructor Detail |
|---|
public MultiplexerData()
| Method Detail |
|---|
public long[] popDat11()
public void pushDat11(long[] l)
public java.lang.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;
}
clone in interface Prototypeclone in class GPDatapublic GPData copyTo(GPData gpd)
GPData
copyTo in class GPData
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||