XmlSerializableUFun
- class negmas.preferences.XmlSerializableUFun(*args, **kwargs)[source]
Bases:
Protocol
Can be serialized to XML format (compatible with GENIUS)
Methods Summary
from_genius
(issues, file_name, **kwargs)- rtype:
TypeVar
(X
, bound= XmlSerializable)
from_xml_str
(xml_str, **kwargs)Imports a utility function from a GENIUS XML string.
to_genius
(file_name, **kwargs)Exports a utility function to a GENIUS XML file.
to_xml_str
(**kwargs)Exports a utility function to a well formatted string
xml
(issues)- rtype:
Methods Documentation
- classmethod from_genius(issues, file_name, **kwargs)[source]
- Return type:
TypeVar
(X
, bound= XmlSerializable)
- abstract classmethod from_xml_str(xml_str, **kwargs)[source]
Imports a utility function from a GENIUS XML string.
- to_genius(file_name, **kwargs)[source]
Exports a utility function to a GENIUS XML file.
- Remarks:
See
to_xml_str
for all the parameters