Defining custom or complex views

未关闭
#2,357 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
go
领域
backend

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
Go
星标
59
派生
20
平均合并
10 小时 52 分钟
30 天内合并 PR
903

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Open-MBEE/OpenSysML 的其他 Issue

查看 Open-MBEE/OpenSysML 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。