code: public static DevState tangoState(int taco_code)
  	{
  		switch(taco_code)
  		{
  			case DEVOFF:
  				return DevState.OFF;
  			case DEVON:
  				return DevState.ON;
  			case DEVCLOSE:
  				return DevState.CLOSE;
  			case DEVOPEN:
  				return DevState.OPEN;
  			case DEVINSERTED:
  				return DevState.INSERT;
  			case DEVEXTRACTED:
  				return DevState.EXTRACT;
  			case DEVMOVING:
  				return DevState.MOVING;
  			case DEVWARMUP:
  			case DEVINIT:
  				return DevState.INIT;
  			case DEVSTANDBY:
  				return DevState.STANDBY;
  			case DEVFAULT:
  				return DevState.FAULT;
  			case RUNNING:
  				return DevState.RUNNING;
  			case DEVALARM:
  				return DevState.ALARM;
  			case DEVDISABLED:
  				return DevState.DISABLE;
  		}
  		return DevState.UNKNOWN;
  	}
docs: ================================================================