RLPark 1.0.0
Reinforcement Learning Framework in Java

Job.java

Go to the documentation of this file.
00001 package rlpark.example.demos.scheduling;
00002 
00003 import java.io.Serializable;
00004 
00005 @SuppressWarnings("serial")
00006 class Job implements Runnable, Serializable {
00007   static int nbJob = 0;
00008   final public int jobId;
00009   private int result;
00010 
00011   public Job() {
00012     jobId = Job.nbJob;
00013     Job.nbJob++;
00014   }
00015 
00016   @Override
00017   public void run() {
00018     System.out.println("Running job: " + jobId);
00019     result = -jobId;
00020   }
00021 
00022   public int result() {
00023     return result;
00024   }
00025 }
 All Classes Namespaces Files Functions Variables Enumerations
Zephyr
RLPark