RLPark 1.0.0
Reinforcement Learning Framework in Java
|
00001 package zephyr.plugin.core.api.internal.monitoring.fileloggers; 00002 00003 import java.io.IOException; 00004 import java.io.Writer; 00005 00006 public class LoggerRowTimed extends LoggerRow { 00007 public LoggerRowTimed(String filepath) throws IOException { 00008 this(filepath, false); 00009 } 00010 00011 public LoggerRowTimed(String filepath, boolean temporaryFile) throws IOException { 00012 super(filepath, temporaryFile); 00013 } 00014 00015 public LoggerRowTimed(Writer writer) { 00016 super(writer); 00017 } 00018 00019 @Override 00020 public void writeLegend(String... labels) { 00021 file.print("TimeStamp "); 00022 super.writeLegend(labels); 00023 } 00024 00025 @Override 00026 public void writeRow(double... row) { 00027 file.print(String.valueOf(System.currentTimeMillis()) + " "); 00028 super.writeRow(row); 00029 } 00030 }