RLPark 1.0.0
Reinforcement Learning Framework in Java

Labels.java

Go to the documentation of this file.
00001 package zephyr.plugin.core.api.labels;
00002 
00003 
00004 public class Labels {
00005 
00006   public static String label(Object object) {
00007     if (object instanceof Labeled)
00008       return ((Labeled) object).label();
00009     return object.toString();
00010   }
00011 
00012   public static String classLabel(Object object) {
00013     if (object instanceof Labeled)
00014       return ((Labeled) object).label();
00015     return object.getClass().getSimpleName();
00016   }
00017 }
 All Classes Namespaces Files Functions Variables Enumerations
Zephyr
RLPark