from abc import ABCMeta, abstractmethod
import logging

logging.basicConfig()

class Display(object):
    """ Display abstract base class represents interface for a display. """
    __metaclass__=ABCMeta

    @abstractmethod
    def display(self, ndl, time, depth):
        pass

    @staticmethod
    def factory(type):
        if type == "Stdio": return Stdio()
        assert 0, "Bad display: " + type


class Stdio():
    """ Implementation of class Display using the standard IO.

    """

    def __init__(self):
        pass 

    def display(self, ndl, time, depth):
        print("Time: \t", time, "min\nDepth: \t", depth, "m\nNDL: \t", ndl, "min")

if __name__ == "__main__":
    print("Test Display")
    print("---------------------")
    display = Display.factory("Stdio")
    display.display(10,1,10)

@@ -248,32 +248,38 @@
 ndl, time, depth
+, temp
 ):%0A        pass%0A
@@ -571,16 +571,22 @@
 e, depth
+, temp
 ):%0A     
@@ -613,19 +613,19 @@
  time, %22
-min
+sec
 %5CnDepth:
@@ -660,16 +660,38 @@
 dl, %22min
+%5CnTemp: %5Ct%22, temp, %22oC
 %22)%0A%0Aif _
@@ -840,10 +840,14 @@
 (10,1,10
+,273
 )%0A

Add temperature to display interface