$darkmode
DENOPTIM
|
A tool that start a Py4J gateway server that can listens to calls from Python and translate JAVA objects to make their functionality available to in the Python environment. More...
Public Member Functions | |
Object | loadData (String pathname) throws Exception |
Reads any DENOPTIM-kind of data from the given pathname. More... | |
Object | getData () |
String | getSourcePathName () |
void | shutdown () |
Stops the server. More... | |
Static Public Member Functions | |
static void | launch () throws DENOPTIMException |
Starts a gateway server using this class as entry point, which then becomes the interpreter of any data fed-in by the loadData(String) method. More... | |
Private Member Functions | |
void | setServer (GatewayServer server) |
Sets the reference to the launched server. More... | |
Private Attributes | |
GatewayServer | server |
The actual server we launch, or null if not launched yet. More... | |
String | pathname = null |
Pathname from which data was loaded, or null if no data has been loaded. More... | |
Object | data = null |
Any DENOPTIM-related data loaded from file, if any. More... | |
A tool that start a Py4J gateway server that can listens to calls from Python and translate JAVA objects to make their functionality available to in the Python environment.
Definition at line 35 of file Py4JGetawayServer.java.
Object denoptim.integration.python.Py4JGetawayServer.getData | ( | ) |
Definition at line 97 of file Py4JGetawayServer.java.
References denoptim.integration.python.Py4JGetawayServer.data.
String denoptim.integration.python.Py4JGetawayServer.getSourcePathName | ( | ) |
Definition at line 108 of file Py4JGetawayServer.java.
References denoptim.integration.python.Py4JGetawayServer.pathname.
|
static |
Starts a gateway server using this class as entry point, which then becomes the interpreter of any data fed-in by the loadData(String)
method.
DENOPTIMException |
Definition at line 60 of file Py4JGetawayServer.java.
References denoptim.integration.python.Py4JGetawayServer.setServer().
Referenced by denoptim.main.Main.main().
Object denoptim.integration.python.Py4JGetawayServer.loadData | ( | String | pathname | ) | throws Exception |
Reads any DENOPTIM-kind of data from the given pathname.
pathname | the pathname of the file to read. |
Exception | if anything goes wrong with the reading of the data. |
Definition at line 85 of file Py4JGetawayServer.java.
References denoptim.integration.python.Py4JGetawayServer.data, denoptim.integration.python.Py4JGetawayServer.pathname, and denoptim.io.DenoptimIO.readDENOPTIMData().
|
private |
Sets the reference to the launched server.
server |
Definition at line 130 of file Py4JGetawayServer.java.
References denoptim.integration.python.Py4JGetawayServer.server.
Referenced by denoptim.integration.python.Py4JGetawayServer.launch().
void denoptim.integration.python.Py4JGetawayServer.shutdown | ( | ) |
Stops the server.
Definition at line 118 of file Py4JGetawayServer.java.
References denoptim.integration.python.Py4JGetawayServer.server.
|
private |
Any DENOPTIM-related data loaded from file, if any.
Definition at line 50 of file Py4JGetawayServer.java.
Referenced by denoptim.integration.python.Py4JGetawayServer.getData(), and denoptim.integration.python.Py4JGetawayServer.loadData().
|
private |
Pathname from which data was loaded, or null if no data has been loaded.
Definition at line 45 of file Py4JGetawayServer.java.
Referenced by denoptim.integration.python.Py4JGetawayServer.getSourcePathName(), and denoptim.integration.python.Py4JGetawayServer.loadData().
|
private |
The actual server we launch, or null if not launched yet.
Definition at line 40 of file Py4JGetawayServer.java.
Referenced by denoptim.integration.python.Py4JGetawayServer.setServer(), and denoptim.integration.python.Py4JGetawayServer.shutdown().