Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User-defined models #4

Open
kaizu opened this issue May 16, 2022 · 2 comments
Open

User-defined models #4

kaizu opened this issue May 16, 2022 · 2 comments
Assignees

Comments

@kaizu
Copy link
Member

kaizu commented May 16, 2022

No description provided.

@kaizu
Copy link
Member Author

kaizu commented May 16, 2022

  1. モデルに加える操作をCommandとして定義する。まずはupdate_reaction_bounds
  2. ユーザー定義のモデルをコマンドのリストとして定義する。
  3. サーバー側で「元となるモデルID」「コマンドのリスト」と「作成者名」を受け取り、生成したモデルIDを返す。作成されたモデルを一時ディレクトリにキャッシュする。
  4. 作成されたモデルは、最大で100個まで。各モデルは作成時刻から有効期限を設ける(1時間くらい)。
  5. モデルを作成する要求がサーバーに来た時にまず、既存のモデルについて有効期限を確認して、過ぎているものは削除する。
  6. 作成されたモデルを読む要求が来たときは、有効期限済みのファイルは「削除しない」で、無いものとして扱うにとどめる。
  7. 作成されたモデルの情報(モデルID、作成時刻、有効期限、作成者など)はメモリ上に記憶しておく
  8. サーバーapp起動時にすべての過去に作成されたモデルは削除される。
  9. 現在保有しているモデルのリストを返せるようにする。

@kaizu
Copy link
Member Author

kaizu commented May 17, 2022

  1. Define the operations to the model as "Command"s. Start implementing "update_reaction_bound" first.
  2. Define a user-defined model as a pair of the original model and a list of commands.
  3. The server-side app receives the 'original model ID', 'list of commands', and 'creator name' (as an annotation) and returns the model ID generated. The model is cached in a temporary directory.
  4. The maximum number of models created in the directory is limited to be less than 100. Each model has an expiry date from the creation time (e.g., 1 hour).
  5. When a request to create a model comes to the server, it first checks the expiry date for existing models and deletes those that have passed.
  6. When a request comes in to read a model registered before, the expired file is "not deleted" at the time and is just treated as if it does not exist.
  7. Information on created models (model ID, creation time, expiry date, creator, etc.) is stored in memory (not saved as a file).
  8. All previously created models are deleted when the server app starts.
  9. Enable to return a list of currently held models with their property information. This information is available to notify the new models in the VR app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants