negmas.java Module

Implements Java interoperability allowing parts of negmas to work smoothly with their Java counterparts in jnegmas

Functions

to_java(value[, add_type_field, …])

Encodes the given value as nothing not more complex than simple dict of either dicts, lists or builtin numeric or string values

from_java(d[, deep, remove_type_field, …])

Decodes a dict coming from java recovering all objects in the way

java_identifier(s)

jnegmas_bridge_is_running([port])

Checks whether a JNegMAS Bridge is running.

init_jnegmas_bridge([path, port])

jnegmas_connection([init, path, java_port, …])

A connection to jnegmas that closes automatically

from_java(d[, deep, remove_type_field, …])

Decodes a dict coming from java recovering all objects in the way

to_dict(value[, deep, add_type_field, camel])

Encodes the given value as nothing more complex than simple dict of either dicts, lists or builtin numeric or string values :param value: Any object :param deep: Whether we should go deep in the encoding or do a shallow encoding :param add_type_field: Whether to add a type field.

java_link(obj[, map])

Creates a link in java to the object given without copying it.

Classes

JavaCallerMixin()

A mixin to enable calling a java counterpart.

JNegmasGateway()

Class Inheritance Diagram

Inheritance diagram of negmas.java.JavaCallerMixin, negmas.java.JNegmasGateway