// DO NOT PUT THIS CLASS IN YOUR PROJECT!
// It is built into the AgentWorld, because the
// ExampleCollector agent needs to access it.
// It is being provided so that you can see its accessor methods.
package AgentWorld; 

public final class LabeledExample
{ Sensors input;
  String  direction;
  boolean outputValue;

  LabeledExample(Sensors input, String direction, boolean goodMove)
  {
    this.input       = input;
    this.direction   = direction;
    this.outputValue = goodMove;
  }

  // Get the 'I' (input) part of this I/O pair.
  public Sensors getSensorReadings()
  {
    return input;
  }

  // Was this example labeled as a positive example?
  // That is, given these sensors, did the 'teacher'
  // say that moving in this direction was a good idea?
  // (This is the 'O' [output] part of the I/O pair.)
  public boolean isaGoodDirectionToMove()
  {
    return outputValue;
  }
}
