Skip to content
Snippets Groups Projects
Select Git revision
  • 454ee17524001736d518fa3dbe535d624e63d214
  • master default protected
  • dev protected
  • Issue/3003-stsInstitute
  • gitkeep
  • Issue/2449-GuidPidSlugToProjectSettings
  • Issue/2309-docs
  • Fix/xxxx-updateDependencies
  • Issue/2364-testingKpiParser
  • Issue/2287-guestRole
  • Test/xxxx-pipelineTriggers
  • Issue/2102-gitLabResTypeRCV
  • Issue/2278-gitlabToS
  • Issue/2101-gitLabResTypeUi
  • Issue/1788-extractionCronjob
  • Issue/2183-kpiGeneratorResource
  • Issue/2222-resourceDateCreated
  • Issue/2221-projectDateCreated
  • Issue/1321-pidEnquiryOverhaul
  • Issue/1999-gitlabResourcesLib
  • Issue/1951-quotaImplementation
  • v2.22.0
  • v2.20.0
  • v2.19.1
  • v2.19.0
  • v2.18.0
  • v2.17.0
  • v2.16.2
  • v2.16.1
  • v2.16.0
  • v2.15.0
  • v2.14.0
  • v2.13.0
  • v2.12.1
  • v2.12.0
  • v2.11.1
  • v2.11.0
  • v2.10.1
  • v2.10.0
  • v2.9.1
  • v2.9.0
41 results

User.cs

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