public interface DeviceRelationship extends ObjectRelationship
SingleDevice
objects.
InterfaceTerminalRelationshipBase
and DeviceRelationship
.
Modifier and Type | Interface and Description |
---|---|
static class |
DeviceRelationship.RelationType
Specifies the nature of the relationship between the related and relating objects.
|
NXObject.AttributeInformation, NXObject.AttributeType, NXObject.ComputationalTime, NXObject.DateAndTimeFormat
Modifier and Type | Method and Description |
---|---|
void |
addRelatedSingleDevice(SingleDevice relatedDevice)
Adds a
SingleDevice to the collection of related SingleDevice objects. |
SingleDevice[] |
getRelatedSingleDevices()
Returns the list of related
SingleDevice objects. |
SingleDevice |
getRelatingSingleDevice()
Returns the one
SingleDevice to which the other SingleDevice objects are related. |
DeviceRelationship.RelationType |
relationshipType()
Returns the type of the relationship.
|
void |
removeRelatedSingleDevice(SingleDevice relatedDevice)
Removes a
SingleDevice from the collection of related SingleDevice objects. |
void |
replaceRelatedSingleDevices(SingleDevice[] relatedDevices)
Replaces the collection of related
SingleDevice objects. |
void |
setRelatingSingleDevice(SingleDevice relatingDevice)
Sets the one Relating
SingleDevice . |
void |
setRelationshipType(DeviceRelationship.RelationType relationshipType)
License requirements: routing_advanced ("Routing Advanced"), routing_base ("Routing Basic") . |
guid, setGuid
deleteAllAttributesByType, deleteAllAttributesByType, deleteAttributeByTypeAndTitle, deleteAttributeByTypeAndTitle, deleteUserAttribute, deleteUserAttributes, getAttributeTitlesByType, getBooleanUserAttribute, getComputationalTimeUserAttribute, getIntegerAttribute, getIntegerUserAttribute, getRealAttribute, getRealUserAttribute, getReferenceAttribute, getStringAttribute, getStringUserAttribute, getTimeAttribute, getTimeUserAttribute, getUserAttribute, getUserAttribute, getUserAttributeAsString, getUserAttributeCount, getUserAttributeCount, getUserAttributeLock, getUserAttributes, getUserAttributes, getUserAttributes, getUserAttributesAsStrings, getUserAttributeSize, getUserAttributeSourceObjects, hasUserAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setBooleanUserAttribute, setReferenceAttribute, setReferenceAttribute, setTimeAttribute, setTimeAttribute, setTimeUserAttribute, setTimeUserAttribute, setUserAttribute, setUserAttribute, setUserAttribute, setUserAttribute, setUserAttribute, setUserAttributeLock
printTestData, printTestData, tag, tagValue
findObject, isOccurrence, journalIdentifier, name, owningComponent, owningPart, print, prototype, setName
DeviceRelationship.RelationType relationshipType() throws NXException, RemoteException
NXException
RemoteException
void setRelationshipType(DeviceRelationship.RelationType relationshipType) throws NXException, RemoteException
relationshipType
- The new type of the relationshipNXException
RemoteException
SingleDevice getRelatingSingleDevice() throws NXException, RemoteException
SingleDevice
to which the other SingleDevice
objects are related.
NXException
RemoteException
void setRelatingSingleDevice(SingleDevice relatingDevice) throws NXException, RemoteException
SingleDevice
.
relatingDevice
- The new Relating deviceNXException
RemoteException
SingleDevice[] getRelatedSingleDevices() throws NXException, RemoteException
SingleDevice
objects. The objects in the list are related to the relating SingleDevice
object.
SingleDevice
objects that are related to the Relating SingleDeviceNXException
RemoteException
void addRelatedSingleDevice(SingleDevice relatedDevice) throws NXException, RemoteException
SingleDevice
to the collection of related SingleDevice
objects.
relatedDevice
- The SingleDevice
to add to the set of related objectsNXException
RemoteException
void removeRelatedSingleDevice(SingleDevice relatedDevice) throws NXException, RemoteException
SingleDevice
from the collection of related SingleDevice
objects.
relatedDevice
- The SingleDevice
that is removed from the set of related objectsNXException
RemoteException
void replaceRelatedSingleDevices(SingleDevice[] relatedDevices) throws NXException, RemoteException
SingleDevice
objects.
relatedDevices
- A set of SingleDevice
objects that replaces the current set of related objectsNXException
RemoteException
Copyright 2011 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.