Skip to content
Snippets Groups Projects
Select Git revision
  • 1249c24fa856a54b4005a5ba9728fc509828adb8
  • master default protected
  • condition_monitoring
  • add_smart_forestry_features
  • add_cc4w_features
  • add_SiteStruct_features
  • s3i_v3
  • RIF-waldboden40
  • message_callbacks
  • response_handling_with_async_events
  • fix_enum
  • Einarbeitung_Peng
  • 16-add-Classes-from-DigiKomForst-project
  • digiKomForstServices
  • update_doc
  • 12-emitting-named-events-crashes-application
  • DZ-Wald
  • 1.0.0
  • 0.2.12
  • 0.2.11
  • 0.2.10
  • 0.2.9
  • 0.2.8
  • 0.2.7
  • 0.2.6
  • 0.2.5.3
  • 0.2.5.2
  • 0.2.5.1
  • 0.2.5
  • v0.2.0
30 results

determines_passability.py

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    determines_passability.py 1.61 KiB
    """This module implements the class DeterminesPassability."""
    
    from datetime import date
    
    from ml.ml40.features.functionalities.functionality import Functionality
    
    
    class DeterminesPassability(Functionality):
        """This functionality signalizes that the passability can be
        calculated."""
    
        def __init__(self, namespace="fml40", name="", identifier="", parent=None):
            """Initializes the object.
    
            :param name: Object name
            :param identifier: Identifier
    
            """
            super().__init__(
                namespace=namespace, name=name, identifier=identifier, parent=parent
            )
    
        def isPassableNow(self, input: float) -> bool:
            """Returns true if this object can be passed with the given weight
            input, otherwise returns false.
    
            :param input: Weight of the thing that should pass this object
            :rtype: bool
            """
            pass
    
        def maxPassableWeightNow(self) -> float:
            """Returns the maximal weight of an object that can pass this object
            at the moment.
    
            :returns: Maximal weight
            :rtype: bool
            """
            pass
    
        def maxPassableWeightOnDate(self, date: date) -> float:
            """Returns the maximal weight of an object that can pass this object
            at the given date.
    
            :param date: Specifies the date
            :returns: Maximal weight
            :rtype: bool
            """
            pass
    
        def willBePassable(self, input: float) -> date:
            """Returns the next date this object is passable.
    
            :param input: Weight that should pass this object
            :returns: Date
            :rtype: date
            """
            pass