require 'rover_utils'
require 'aanderaa'

class MockAanderaa < Aanderaa 
  include LogHelper
  
  def initialize config, portname = '/dev/chamber_optode'
    #pass the real portname to super so that the @name variable gets
    #initialized
    super(config, portname)
    unless config
      config = SerialPort::Configuration.default
      config.baud = 9600
    end
    @dev = Posix::SerialPort.new("/dev/null", config)
    syslog("_ initializer called with portname = #{portname}")
  end
  
  def acquire_data
    syslog("_ acquire_data method called, doing nothing")
    return true
  end
  
  def log_data
    syslog("_ log data called, doing nothing")
  end
  
end