org.reprap
Class Device

java.lang.Object
  extended by org.reprap.Device
Direct Known Subclasses:
GenericStepperMotor

public class Device
extends java.lang.Object

Class implements an abstract device containing the basic properties and methods. An "implemented" device refers to for example a UCB/Stepper motor combination, extruder or other.


Field Summary
private  Address address
          Adress of the device.
private  Communicator communicator
          Communicator
 Printer printer
          To whom (grammar) do I belong? if null, device is a brain in a bottle (i.e.
 
Constructor Summary
Device(Address address)
           
Device(Communicator communicator, Address address)
          Basic constructor for a device.
 
Method Summary
 Address getAddress()
           
 Communicator getCommunicator()
           
 Printer getPrinter()
           
 void setPrinter(Printer p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

address

private Address address
Adress of the device. Identifier returned by the firmware in the device


communicator

private Communicator communicator
Communicator


printer

public Printer printer
To whom (grammar) do I belong? if null, device is a brain in a bottle (i.e. just working alone on the bench).

Constructor Detail

Device

public Device(Communicator communicator,
              Address address)
Basic constructor for a device.

Parameters:
communicator - communicator used by the device
address - address of the device

Device

public Device(Address address)
Method Detail

getAddress

public Address getAddress()
Returns:
the adress of the device

getCommunicator

public Communicator getCommunicator()
Returns:
the communicator

setPrinter

public void setPrinter(Printer p)

getPrinter

public Printer getPrinter()