Defining custom or complex views

Aperta
#2,357 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go
Ambito
backend

Direzione di ricerca

Read the related issues #1212 and #1628, then investigate how view rendering handles filter conditions and whether SysML expressions can express the requested interface, its ends, and ancestors up to a common ancestor. The issue does not name implementation files or tests, so first locate the view and filter entry points; done means demonstrating a SysML-only custom view or documenting why a custom Go view type is needed.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

This is somewhat related to https://github.com/Open-MBEE/OpenSysML/issues/1212 and https://github.com/Open-MBEE/OpenSysML/issues/1628 , but in context of rendering views.

I tried to make a custom view definition. Its main purpose is given an interface to render that interface together with its ends and all of the ancestors up to a common one.

I tried to do that using filter conditions with no luck yet.

The spec says that

A filter condition is a Boolean valued,
model-level evaluable expression (see [KerML. 7.4.9]) declared using the keyword filter followed by a
Boolean-valued, model-level evaluable expression (see [KerML. 7.4.9]).

Seemingly, that must be enough, but diving deeper, it appears that I couldn't use calc usages or defs, and it looks like complex filters are cubersome at least and impossible at most..

How to make such custom view? In the worst case I could rely on go api and make custom view type, but still am I missing something with sticking only to sysml? It seems that sysml must be flexible enough to make such representations out of the box.

Lingua principale
Go
Stelle
59
Fork
20
Merge medio
10h 52m
PR unite (30g)
903

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Open-MBEE/OpenSysML

Tutte le issue di Open-MBEE/OpenSysML

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.