def getParts(cache, qname): """ Expand the parts of this node.. """ INFO("sys.getParts(%s)" % (qname)) return generic.getRelated(cache, qname, "sys:hasPart")
def getArguments(cache, qname): """ Expand the arguments of a node. """ INFO("soft.getArguments(%s)" % (qname)) return generic.getRelated(cache, qname, "soft:hasArgument")
def getTypes(cache, qname): """ Expand the types of a node. """ INFO("soft.getTypes(%s)" % (qname)) return generic.getRelated(cache, qname, "soft:hasType | (^soft:isTypeOf)")
def getDerives(cache, qname): """ Expand the list of nodes which this node derives. """ INFO("sys.getDerives(%s)" % (qname)) return generic.getRelated(cache, qname, "dev:derives|^dev:isDerivedFrom")
def getRealizedRequirements(cache, qname): """ Expand the realized requirements of a node. """ INFO("sys.getRealizedRequirements(%s)" % (qname)) return generic.getRelated(cache, qname, "sys:realizes/dev:hasRequirement")
def getTested(cache, qname): """ Expand the list of nodes which this node tests. """ INFO("sys.getTested(%s)" % (qname)) return generic.getRelated(cache, qname, "sys:tests")
def getAttributes(cache, qname): """ Expand the attributes of a node. """ INFO("soft.getAttributes(%s)" % (qname)) return generic.getRelated(cache, qname, "soft:hasAttribute")
def getProperties(cache, qname): """ Expand the properties of this node. """ INFO("sys.getProperties(%s)" % (qname)) return generic.getRelated(cache, qname, "sys:hasProperty")
def getVerifies(cache, qname): """ Expand the list of nodes which this node verifies. """ INFO("sys.getVerifies(%s)" % (qname)) return generic.getRelated(cache, qname, "dev:verifies")
def getStates(cache, qname): """ Expand the states of this node. """ INFO("sys.getStates(%s)" % (qname)) return generic.getRelated(cache, qname, "fsm:hasState")
def getDesigns(cache, qname): """ Expand the designs of this node. """ INFO("sys.getDesigns(%s)" % (qname)) return generic.getRelated(cache, qname, "^sys:realizes")
def getDerivedFrom(cache, qname): """ Expand the list of nodes that are derived from this node. """ INFO("sys.getDerivedFrom(%s)" % (qname)) return generic.getRelated(cache, qname, "dev:isDerivedFrom|^dev:derives")
def getAllMembers(cache, qname): """ Expand the direct and indirect members of a node. """ INFO("soft.getAllMembers(%s)" % (qname)) return generic.getRelated(cache, qname, "soft:hasVariable*")
def getRealizes(cache, qname): """ Expand the list of nodes that the given node realizes. """ INFO("sys.getRealizes(%s)" % (qname)) return generic.getRelated(cache, qname, "sys:realizes")
def getDeclaredBy(cache, qname): """ Expand the list of nodes which declare this node. """ INFO("sys.getDeclaredBy(%s)" % (qname)) return generic.getRelated(cache, qname, "^dev:hasRequirement")
def getInterfaceVariables(cache, qname): """ Expand the interface variables of a node. """ INFO("soft.getInterfaceVariables(%s)" % (qname)) return generic.getRelated(cache, qname, "soft:hasVariable")
def getQualifiers(cache, qname): """ Expand the qualifiers of a node. """ INFO("soft.getQualifiers(%s)" % (qname)) return generic.getRelated(cache, qname, "soft:hasQualifier")
def getInterfaceInstanceVariables(cache, qname): """ Expand the interface instance variables of a node. """ INFO("soft.getInterfaceInstanceVariables(%s)" % (qname)) return generic.getRelated(cache, qname, "sys:hasElement")
def getSatisfiedBy(cache, qname): """ Expand the list of nodes that are satisfied by this node. """ INFO("sys.getSatisfiedBy(%s)" % (qname)) return generic.getRelated(cache, qname, "(^dev:satisfies)|dev:isSatisfiedBy")
def getSatisfies(cache, qname): """ Expand the list of nodes which this node satisfies. """ INFO("sys.getSatisfies(%s)" % (qname)) return generic.getRelated(cache, qname, "(^dev:isSatisfiedBy)|dev:satisfies")
def getLinks(cache, qname): """ Expand the links of a node. """ INFO("soft.getLinks(%s)" % (qname)) return generic.getRelated(cache, qname, "sys:isInterfacedWith | ^sys:isInterfacedWith")
def getNamespaces(cache, qname): """ Expand the namespaces of a node. """ INFO("soft.getNamespaces(%s)" % (qname)) return generic.getRelated(cache, qname, "cont:contains|(^cont:isContainedBy)", restriction="soft:Namespace")
def getInstances(cache, qname): """ Expand the instances of a node. """ INFO("soft.getInstances(%s)" % (qname)) return generic.getRelated(cache, qname, "soft:isTypeOf", restriction="soft:Type")
def getFBs(cache, qname): """ Expand the function blocks of a node. """ INFO("soft.getFBs(%s)" % (qname)) return generic.getRelated(cache, qname, "cont:contains|(^cont:isContainedBy)", restriction="iec61131:FunctionBlock")
def getStructs(cache, qname): """ Expand the structs of a node. """ INFO("soft.getStructs(%s)" % (qname)) return generic.getRelated(cache, qname, "cont:contains|(^cont:isContainedBy)", restriction="iec61131:Struct")
def getEnums(cache, qname): """ Expand the enumerations of a node. """ INFO("soft.getEnums(%s)" % (qname)) return generic.getRelated(cache, qname, "cont:contains|(^cont:isContainedBy)", restriction="soft:Enumeration")
def getEnumItems(cache, qname): """ Expand the enumeration items of a node. """ INFO("soft.getEnumItems(%s)" % (qname)) return generic.getRelated(cache, qname, "cont:contains", restriction="soft:EnumerationItem")
def show_enum_item(node, args=None): """ Show the 'enum_item' view of the 'soft' category. """ INFO("soft.show_enum_item(%s)" % node['qname']) generic.fillNumber(node, optional=True) node["item_of"] = generic.getRelated( node.cache, node["qname"], "(^cont:contains)|(cont:isContainedBy)")[0] node.cache[node["item_of"]].show("soft", "enum")
def getAssignments(cache, qname): """ Expand the assignments of a node. """ INFO("soft.getAssignments(%s)" % (qname)) return generic.getRelated(cache, qname, "expr:hasAssignment", sortedByNumber=True)
def getMemberOf(cache, qname): """ Get the node of which this node is a member of. """ INFO("soft.getMemberOf(%s)" % (qname)) return generic.getRelated( cache, qname, "(^soft:hasVariable) | (^soft:hasAttribute) | (^iec61131:hasInputVariable) | (^iec61131:hasOutputVariable) | (^iec61131:hasInOutVariable) | (^iec61131:hasLocalVariable) | (^soft:hasCallable) | (^iec61131:hasMethod) | (^iec61131:hasMethodInstance)" )