Connect - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


SysMLConnector

  

Connect

  

connect to a project on a SysML server

 

Calling Sequence

Parameters

Returns

Description

Examples

Calling Sequence

Connect()

Connect(p)

Connect(t)

Parameters

p

-

string; name of the project

t

-

table with entries containing resource, project, model, branch and revision information

Returns

table with the same entries as described for the Connect(t) calling sequence

Description

• 

The Connect() calling sequence returns a list of all available resources on the server. Each entry in the list is of the form name=uuid, where both name and uuid are strings.

• 

The Connect(p) calling sequence connects to the project with name p on the server. If no such project is found, an error is returned.

• 

This calling sequence will connect to the head revision in the trunk of the project.

• 

The Connect(t) calling sequence allows to select a specific branch and / or revision to connect to. The table t can have the following fields:

– 

"resource": UUID string (required)

– 

"project": UUID string (required)

– 

"model": (optional) UUID string

– 

"branch": (optional) UUID string; default: trunk

– 

"revision": (optional) nonnegative integer as a string; default: head revision

• 

It is necessary to log into the server using the Login command first; otherwise an error will be raised.

• 

After a connection has been successfully established, the SysMLConnector package maintains an internal cache of downloaded model elements in order to speed up subsequent processing. This cache is deleted and re-initialized each time Connect is called.

Examples

withSysMLConnector

ClearChangeSet,Commit,Connect,GetBinding,GetChildren,GetConstraint,GetInstances,GetSlots,GetValue,Login,Logout,PrintChangeSet,PrintElement,PutConstraint,PutValue,QualifiedNameOf,QueryModel,Warnlevel

(1)

Loginhttps://twc.mycompany.com:8111/,user=alice,password=a%5Wr^Xt0p@2

List all projects on the server.

Connect

Connect to the JMPTWCSysML model.

modelConnectJMPTWCSysML

modeltableproject=bdaa05e1-ba62-4b6f-b3fe-f0e8fa9e57ee,model=c9a69180-2aeb-42c1-b794-f7956536f84e,revision=27,branch=6a9bfbbf-8008-4a7b-b550-521dbf092ac1,server=https://twc.mycompany.com:8111/,opts=verify=false,timeout=50,resource=8d506cce-684c-464b-9ec8-54947f46c27f

(2)

Query the root element.

QueryModel

5d471c31-509c-4dbb-bc46-ea1bea7a211a,uml:Model,Model

(3)

Logout

See Also

Login

Logout

QueryModel

SysMLConnector