public void calculateAcceleration(){       
        if(conductorBrake)
            currentAcceleration = -1.2;     // m/sec^2
        else if(eBrake)
            currentAcceleration = -2.73;    // m/sec^2
       /* else if(inputBrakeFailure)
            currentAcceleration = 0;
        else if(currentSpeed==blockSpeedLimit)
            currentAcceleration = 0;
        else if(engineFailure)
            currentAcceleration = 0;*/
        else if(failureBrake)
        {
            currentAcceleration = -2.73;
        }
        else
            currentAcceleration = currentForce / (mass+passengerMass);
        
        System.out.println(mass);
        
        if(currentAcceleration > 1)         //Max acceleration can't
            currentAcceleration = 1;        //exceed 1 m/sec^2
    }