Module python.domainModel.policies.Policy
Expand source code
from abc import ABC, abstractmethod
class PolicyAB(ABC):
"""
Abstract class that represents a simple policy, with its basic check validity operation
"""
@abstractmethod
def check_validity(self, *values):
"""
Abstract method that check a simple policy validity
:param values: the value to check
:return: the boolean response based on a specific policy
"""
pass
Classes
class PolicyAB
-
Abstract class that represents a simple policy, with its basic check validity operation
Expand source code
class PolicyAB(ABC): """ Abstract class that represents a simple policy, with its basic check validity operation """ @abstractmethod def check_validity(self, *values): """ Abstract method that check a simple policy validity :param values: the value to check :return: the boolean response based on a specific policy """ pass
Ancestors
- abc.ABC
Subclasses
Methods
def check_validity(self, *values)
-
Abstract method that check a simple policy validity :param values: the value to check :return: the boolean response based on a specific policy
Expand source code
@abstractmethod def check_validity(self, *values): """ Abstract method that check a simple policy validity :param values: the value to check :return: the boolean response based on a specific policy """ pass