PRMexplorer.getSuperInterface

PRMexplorer.getSuperInterface(interface_name)
Parameters:

interface_name (str) – an interface name

Returns:

the interace extended by interface_name

Return type:

str

Raises:

pyagrum.NotFound – If the interface is not in the PRM

Example

import pyagrum as gum

with open("devices.o3prm", "w") as f:
  f.write("""
interface Equipment { boolean works; }
interface Printer extends Equipment { boolean hasInk; }
""")
ex = gum.PRMexplorer()
ex.load("./devices.o3prm")
ex.getSuperInterface("Printer")
# 'Equipment'
print(ex.getSuperInterface("Equipment"))
# None

Class

PRMexplorer