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
-
MS
- Mindstorms Brick
-
CM
- Cybermaster
-
RCX
- like MS+CM
-
FT
- Fischertechnik
-
AWT
- special AWT-Interface (from the examples)
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.
RobotInterfaceStringDefinition
public RobotInterfaceStringDefinition(String interfaceId)
- Construct a new RobotInterfaceDefinition from the String given by interfaceId.
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