change switchType to use an enum.
remove what look to be redundant TinygDriver.getInstance().getMachine()
change return value of getSwitchType() to  enum.
remove getSwitchTypeAsString() since you can just use toString on the enum
remove getSwitchTypeAsString() since you can just use toString on the enum