package se.omicron;

import javax.ejb.Stateless;

/**
 * Session Bean implementation class Temperature
 */
@Stateless
public class TemperatureImpl implements TemperatureLocal,TemperatureRemote {

    /**
     * Default constructor. 
     */
    public TemperatureImpl() {
        // TODO Auto-generated constructor stub
    }
    
   
    public double celcius2farenheit(double c)
    {
    	return 32.0 + 1.8*c;
    }

    
    public double farenheit2celcius(double f)
    {
    	return (f-32.0)/1.8;
    }
}
