MATLAB Connector Parent

Provides the ability to run MATLAB functions remotely.

Лицензия

Лицензия

Группа

Группа

org.n52.matlab
Идентификатор

Идентификатор

matlab-connector
Последняя версия

Последняя версия

2.0.1
Дата

Дата

Тип

Тип

pom
Описание

Описание

MATLAB Connector Parent
Provides the ability to run MATLAB functions remotely.
Ссылка на сайт

Ссылка на сайт

https://github.com/52North/matlab-connector
Система контроля версий

Система контроля версий

https://github.com/52North/matlab-connector

Скачать matlab-connector

Имя Файла Размер
matlab-connector-2.0.1.pom 18 KB
Обзор

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.n52.matlab/matlab-connector/ -->
<dependency>
    <groupId>org.n52.matlab</groupId>
    <artifactId>matlab-connector</artifactId>
    <version>2.0.1</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/org.n52.matlab/matlab-connector/
implementation 'org.n52.matlab:matlab-connector:2.0.1'
// https://jarcasting.com/artifacts/org.n52.matlab/matlab-connector/
implementation ("org.n52.matlab:matlab-connector:2.0.1")
'org.n52.matlab:matlab-connector:pom:2.0.1'
<dependency org="org.n52.matlab" name="matlab-connector" rev="2.0.1">
  <artifact name="matlab-connector" type="pom" />
</dependency>
@Grapes(
@Grab(group='org.n52.matlab', module='matlab-connector', version='2.0.1')
)
libraryDependencies += "org.n52.matlab" % "matlab-connector" % "2.0.1"
[org.n52.matlab/matlab-connector "2.0.1"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

  • common
  • client
  • server

Matlab Connector Build Status

This project is not part of the 52°North managed code base.

The matlab-connector library enables function execution on a remote MATLAB instance.

JSON is used as a platform and language independent.

Server setup

Usage: java -jar matlab-connector-2.0-SNAPSHOT-with-dependencies.jar [options]
  Options:
    -b, --base-dir
       The base directory.
       Default: /home/auti/Source/matlab-connector
        --cert-file
       Path to SSL server certificate (incl. chain) in PEM format.
        --clientauth
       Path to a PEM file containing all trusted (client) certificates.
        --debug
       Show debug output.
       Default: false
    -h, --help
       Display this help message.
        --key-file
       Path to SSL server key in PEM format.
        --keystore-config
       Path to the SSL config file.
    -p, --port
       The port to listen on.
       Default: 7000
    -t, --threads
       The amount of server threads.
       Default: 5
        --trust-file
       Path to a PEM file containing all trusted (client) certificates.

Using the Java client

Evaluating a MATLAB function

To execute a function in Java. Host can be localhost, or remote.

// Create client instance
MLClient client = new MLClient();

// Build request
MLRequest request = new MLRequest("do_a_sum");
request.addParameter(new MLScalar(2));
request.addParameter(new MLScalar(2));

// Send request
MLResult result = client.sendRequest("localhost", 44444, request);

// Print result
System.out.println(result.toString());

Build

mvn clean install
org.n52.matlab

52°North Initiative for Geospatial Open Source Software GmbH

Версии библиотеки

Версия
2.0.1
2.0.0