RLPark 1.0.0
Reinforcement Learning Framework in Java

DropData.java

Go to the documentation of this file.
00001 package rlpark.plugin.robot.internal.disco.drops;
00002 
00003 import rlpark.plugin.robot.internal.sync.LiteByteBuffer;
00004 
00005 
00006 
00007 public abstract class DropData {
00008   public static final int FloatSize = Float.SIZE / 8;
00009   public static final int IntSize = Integer.SIZE / 8;
00010   public static final int CharSize = Byte.SIZE / 8;
00011   public static final int ByteSize = Byte.SIZE / 8;
00012 
00013   final public String label;
00014   final public boolean readOnly;
00015   protected final int index;
00016 
00017   protected DropData(String label, boolean readOnly) {
00018     this(label, readOnly, -1);
00019   }
00020 
00021 
00022   protected DropData(String label, boolean readOnly, int index) {
00023     this.label = label;
00024     this.readOnly = readOnly;
00025     this.index = index;
00026   }
00027 
00028   public DropData clone(int index) {
00029     return clone(label, index);
00030   }
00031 
00032   abstract public DropData clone(String label, int index);
00033 
00034   abstract public int size();
00035 
00036   abstract public void putData(LiteByteBuffer buffer);
00037 }
 All Classes Namespaces Files Functions Variables Enumerations
Zephyr
RLPark