Next: Member
Up: Property
Previous: MaxAssocs
MaxConns
Description
The MaxConns property is used to further specify a role definition in UniCon. It defines the maximum number of connections in which a role can be involved. To illustrate, a role with a MaxConns value of 2 cannot be associated with more than two players in a connection in a system. This number represents a maximum, not a requirement.
Property Lists
The MaxConns property can legally be specified in the property list in the following
UniCon language element:
Value Syntax
The syntax of the value of the MaxConns property is a simple <integer>.
Required Rule
Optional
Each role type has its own default:
--------------------
Role Type Default
--------------------
Caller 65535
Definer 1
Load 65535
Participant 65535
Readee 1
Reader 65535
Sink 1
Source 1
User 65535
Writee 1
Writer 65535
--------------------
Merge Rule
REPLACE
Subsequent specifications of the MaxConns property in a single property list replace earlier specifications (i.e., the last specification is the one that the UniCon compiler uses).
Semantic Checks
The following are the semantic checks performed on the value of the MaxConns property:
- The value of the MaxConns property may not be negative.
- The value of the MaxConns property cannot exceed its default value as specified in the table above.
- The value of the MaxConns property must be at least as large as the value of a player's MinConns value.
Example
The following is an example of a specification of a MaxConns property. It is embedded in a role definition of type Participant:
ROLE C-Bundler-Participant IS Participant
MAXCONNS (25)
END C-Bundler-Participant
The above example prevents the C-Bundler-Particpant Participant role from being connected more than twenty-five times per instantiation of the connector in which it is defined.
Next: Member
Up: Property
Previous: MaxAssocs
Comments?
Mail the current maintainer of this page.
Author:
Gregory Zelesnik
Last Modified: May 12, 1996