Link Attribute: container
ProtocolParam that contains this Param. Generally used when this parameter relates only to another parameter, e.g. a temperature for an annealing cycle, or a weight for a constraint list.
guid:
|
www.ccpn.ac.uk_Fogh_2010-05-20-14:35:13_00001
|
Type:
|
ProtocolParameter
|
Multiplicity:
|
0..1
|
Changeability:
|
changeable
|
isDerived:
|
False
|
isAutomatic:
|
False
|
isImplementation:
|
False
|
isImplicit:
|
False
|
isAbstract:
|
False
|
Scope:
|
instance_level
|
Inverse role:
|
content
|
Constraint name:
|
Container_is_container_type_or_content_but_not_container_is_simple_type
|
python code
|
container = self.container
simpleTypes = ('textValue', 'intValue', 'floatValue', 'booleanValue')
if container is None:
isValid = True
elif container.paramType == 'Container':
isValid = True
elif self.paramType in simpleTypes and container.paramType not in simpleTypes:
isValid = True
else:
isValid = False
|
Constraint name:
|
No_cyclical_ProtocolParameter_dependency
|
python code
|
isValid = True
obj = self
while obj is not None:
obj = obj.container
if obj is self:
isValid = False
break
|
|