autoweka
Class Trajectory

java.lang.Object
  extended by autoweka.Trajectory

public class Trajectory
extends java.lang.Object

Class that captures a trajectory of an optimisation run


Nested Class Summary
static class Trajectory.Point
          Representation of a single point along the optimisation run
 
Constructor Summary
Trajectory(java.lang.String seed)
          makes a new empty trajectory with the given seed
 
Method Summary
 void addPoint(Trajectory.Point newPoint)
          Inserts a new point onto the end of this trajectory
 Trajectory.Point getLastPoint()
          Gets the last point in the trajectory, ie the best one
 Trajectory.Point getNextPoint(double time)
          Gets the next point in the trajectory after the given time
 int getNumEvaluations()
          Gets the total number of evaluations that were performed
 int getNumMemOutEvaluations()
          Gets the number of evaluations that hit the memory limit (-1 if not recorded)
 int getNumTimedOutEvaluations()
          Gets the number of evaluations that timed out (-1 if not recorded)
 Trajectory.Point getPointAtTime(double time)
          Gets the point in the trajectory that's closest to this time
 java.util.List<Trajectory.Point> getPoints()
          Gets all the points inside this trajectory
 java.lang.String getSeed()
          Gets the seed for this trajectory
 void setEvaluationCounts(int numTotalEvaluations, int numMemOutEvaluations, int numTimeOutEvaluations)
          Set all the statistics regarding the number of evaluations performed for this trajectory
 void truncateToTime(float maxTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Trajectory

public Trajectory(java.lang.String seed)
makes a new empty trajectory with the given seed

Method Detail

getSeed

public java.lang.String getSeed()
Gets the seed for this trajectory


getPoints

public java.util.List<Trajectory.Point> getPoints()
Gets all the points inside this trajectory


addPoint

public void addPoint(Trajectory.Point newPoint)
Inserts a new point onto the end of this trajectory


getPointAtTime

public Trajectory.Point getPointAtTime(double time)
Gets the point in the trajectory that's closest to this time


getNextPoint

public Trajectory.Point getNextPoint(double time)
Gets the next point in the trajectory after the given time


getLastPoint

public Trajectory.Point getLastPoint()
Gets the last point in the trajectory, ie the best one


truncateToTime

public void truncateToTime(float maxTime)

setEvaluationCounts

public void setEvaluationCounts(int numTotalEvaluations,
                                int numMemOutEvaluations,
                                int numTimeOutEvaluations)
Set all the statistics regarding the number of evaluations performed for this trajectory


getNumEvaluations

public int getNumEvaluations()
Gets the total number of evaluations that were performed


getNumMemOutEvaluations

public int getNumMemOutEvaluations()
Gets the number of evaluations that hit the memory limit (-1 if not recorded)


getNumTimedOutEvaluations

public int getNumTimedOutEvaluations()
Gets the number of evaluations that timed out (-1 if not recorded)