de.jaetzold.art
Class RobotInterfaceStringDefinition

java.lang.Object
  |
  +--de.jaetzold.art.RobotInterfaceStringDefinition
All Implemented Interfaces:
RobotInterfaceDefinition

public class RobotInterfaceStringDefinition
extends Object
implements RobotInterfaceDefinition

This class is for interfaces which are defined just by a single String. This is for now sufficient for all RobotInterface-Implementations in the first version of ART. A RobotInterface definition e.g. for LEGO MINDSTORMS on all known ports is created by a new RobotInterfaceStringDefinition("MS")
Known String-ID's include

For the known implementations it is possible to append a desired serial port name directly, e.g. MS/dev/ttyS0 or RCXCOM2 or to append just numbers, like FT3 to use all known names for the serial port which is COM3 in Windows, plus the 3rd one in the list from JavaComm.


Constructor Summary
RobotInterfaceStringDefinition(String interfaceId)
          Construct a new RobotInterfaceDefinition from the String given by interfaceId.
 
Method Summary
 boolean equals(Object o)
           
 String getInterfaceString()
          Returns the String used to construct this RobotInterfaceStringDefinition.
 String toString()
          Returns the String used to construct this Object preceded by "Definition for interface ".
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RobotInterfaceStringDefinition

public RobotInterfaceStringDefinition(String interfaceId)
Construct a new RobotInterfaceDefinition from the String given by interfaceId.
Method Detail

getInterfaceString

public String getInterfaceString()
Returns the String used to construct this RobotInterfaceStringDefinition.

equals

public boolean equals(Object o)
Overrides:
equals in class Object

toString

public String toString()
Returns the String used to construct this Object preceded by "Definition for interface ".
Overrides:
toString in class Object