Relationship Between LAN Type and Server Processor
This example describes a constraint that is used only to check the consistency of the configuration, not to infer values. It shows the dependency between LAN type FDDI and the processor selected.
If the LAN type is FDDI, the motherboard of the server must contain either a Pentium, Motorola 68040, or Sparc 5 processor.
Dependency: FDDI_Motherboards
Source code:
OBJECTS:
network is_a (300) c_net
WHERE Lan = c_lan_type,
Server is_a (300) c_server
WHERE Motherboard = c_motherboard
CONDITION:
Part_of (server, network) and network.Lan = ‘FDDI’
RESTRICTIONS:
Motherboard in (‘Pentium’, ‘68040’, ‘Sparc’)
The constraint refers to the objects network and server. Since the servers of both department networks and company networks are allocated to classes that are subordinate classes of class c_net, the constraint uses class c_net to refer to the servers of both department networks and company networks.
The condition defines that the server must be part of a network and the LAN type for the network must be FDDI. If this condition is true, the motherboard can only contain a Pentium, Motorola 68040, or Sparc 5 processor.
The constraint must be allocated to both the company network and the department network.