-
Notifications
You must be signed in to change notification settings - Fork 4
Preliminary Domain Model
Nirav Assar edited this page Jun 25, 2019
·
3 revisions
Try to create a domain model in JSON so we can base a preiminary screen Ui with a vue app.
- look at docs to see the domain: Existing OpenDDS Monitor GUI.pdf
- look at docs to see the domain: Existing OpenDDS Monitor GUI.pdf
- /OpenDDS-latest.pdf pg 17 has a picture and definitions
-
http://opendds.org/about/articles/Article-Intro.html#OpenDDS - has good diagram, also good examples of stock quoter
- it has two topocs. stock quotes (prices), and stock exchange events (open, closeing, suspend, or resume)
-
http://opendds.org/about/dds_overview.html has a good diagrams
- see basic components of a system
- The basic components are Topic, Publisher, Subscriber, DataWriter, and DataReader, Samples
- there are also builtin topics which are meta data topics
- when datareadsers topic and datawriters topics are compatible, then you can exchange data
- publish manages the writers, subscriber managers the readers
- topics are container of object data, samples are the instances - subscribers and readers take interest in the topics. for topics without keys, the is only a single instance of that topic. for those with keys, the key identifies a unique instance of the topic
- https://community.rti.com/static/documentation/connext-dds/5.2.3/doc/manuals/connext_dds/html_files/RTI_ConnextDDS_CoreLibraries_UsersManual/Content/UsersManual/DDS_Samplesand_Keys.htm
- what is the purpose of DomainParticipant
- if you have publishers then what is a topic for
- its a container for DataWriters
- publisher/subscriver
- hows does a separate application connect to all this? through a subscriber?
- it says it the application on the subscribing side retrieves the data from the DataReader
- what is the relationship between publishers/subscribers and topics
- applications that are using DDS are publishers and subscribers
Topic name, id, datatype hasMany dataWriters hasMany dataReaders Publisher hasMany datawriters Subscriber hasMany dataReaders DataWriter Topic DataReader Topic - Monitor topic are enabled for the Monitoring Web Gateway - the UI will look at monitor topics and built in topics - ops topics are the domain topics like radar, stock, or flight etc - - had to add hibernate.allow_update_outside_transaction = true - so that the transaction in bootstrap can go through - try in grails 3.3.10 and it works - maybe we needed to create a service for this but i wont bother - to make it render everything just change _object.gson to deep: true - cant have the deep and the parent reference at the same time. So just have the topic -> writers and if you need writers write your own query to get that json
[ { "id": 1, "dataWriters": [ { "id": 1, "name": "gasPriceWriter" } ], "name": "gasPrice", "dataReaders": [ { "id": 1, "name": "gasPriceReader1" }, { "id": 2, "name": "gasPriceReader2" } ] } ] [ { "id": 1, "name": "gasPriceSubscriber", "dataReaders": [ { "id": 1, "name": "gasPriceReader1" }, { "id": 2, "name": "gasPriceReader2" } ] } ] [ { "id": 1, "dataWriters": [ { "id": 1, "name": "gasPriceWriter" } ], "name": "gasPricePublisher" } ]