Package pyxb :: Package utils :: Module fac :: Class CounterCondition
[hide private]
[frames] | no frames]

Class CounterCondition

source code

object --+
         |
        CounterCondition

A counter condition is a range limit on valid counter values.

Instances of this class serve as keys for the counters that represent the configuration of a FAC. The instance also maintains a pointer to application-specific metadata.

Instance Methods [hide private]
 
__get_min(self)
The minimum legal value for the counter.
source code
 
__get_max(self)
The maximum legal value for the counter.
source code
 
__get_metadata(self)
A pointer to application metadata provided when the condition was created.
source code
 
__init__(self, min, max, metadata=None)
Create a counter condition.
source code
 
__hash__(self)
hash(x)
source code
 
__eq__(self, other) source code
 
__ne__(self, other) source code
 
__str__(self)
str(x)
source code

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]
  __min = None
hash(x)
  __max = None
hash(x)
  __metadata = None
hash(x)
Properties [hide private]
  min
The minimum legal value for the counter.
  max
The maximum legal value for the counter.
  metadata
A pointer to application metadata provided when the condition was created.

Inherited from object: __class__

Method Details [hide private]

__get_min(self)

source code 

The minimum legal value for the counter.

This is a non-negative integer.

__get_max(self)

source code 

The maximum legal value for the counter.

This is a positive integer, or None to indicate that the counter is unbounded.

__init__(self, min, max, metadata=None)
(Constructor)

source code 

Create a counter condition.

Parameters:
  • min - The value for min
  • max - The value for max
  • metadata - The value for metadata
Overrides: object.__init__

__hash__(self)
(Hashing function)

source code 

hash(x)

Overrides: object.__hash__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

Property Details [hide private]

min

The minimum legal value for the counter.

This is a non-negative integer.

Get Method:
__get_min(self) - The minimum legal value for the counter.

max

The maximum legal value for the counter.

This is a positive integer, or None to indicate that the counter is unbounded.

Get Method:
__get_max(self) - The maximum legal value for the counter.

metadata

A pointer to application metadata provided when the condition was created.

Get Method:
__get_metadata(self) - A pointer to application metadata provided when the condition was created.