//=========================================================================
// Summary  :
// Filename : Device.cc
// Author   : marsh
// Project  :
// Revision : 1
// Created  : 2000/08/19
// Modified : 2000/08/19
//=========================================================================
// Description :
//=========================================================================
#include <sys/sched.h>
#include "StringAttribute.h"
#include "IntegerAttribute.h"

#include "Device.h"

Device::Device( const char *deviceName, short stratum, debug_t defaultDebug )
     : Process( deviceName, stratum, defaultDebug )
{
     _classID = DEVICE_ID;

     _attributes.add( new StringAttribute("port",
					  "Device serial port",
					  &_port ) );

     _attributes.add( new IntegerAttribute("circuit",
					  "Device power circuit",
					  &_circuit, -1 ) );

}

Device::~Device()
{
    clean(_port);
}
