public TWMSentence( String sentence ) throws Exception
	{
		super(sentence);
		
		temperature = Double.parseDouble( getWord( 0 ) );

		//convert C to kelvin
		if( this.getWord( 1 ).indexOf('C') != -1 )
			temperature += 273.15;
		
		//convert F to kelvin
		if( this.getWord( 1 ).indexOf('F') != -1 )
			temperature = ( temperature - 32.0 ) / 1.8 + 273.15;
	}