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

# type 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) | source code
__eq__(self, other) | source code
__ne__(self, other) | source code
__str__(self) | source code

Class Variables | [hide private]
| __min = `None`
| __max = `None`
| __metadata = `None`

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.

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
Overrides: object.__hash__ (inherited documentation)

### __str__(self) (Informal representation operator) | source code
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.