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

Node Widget #15

Open
bpe2 opened this issue Sep 21, 2020 · 1 comment
Open

Node Widget #15

bpe2 opened this issue Sep 21, 2020 · 1 comment
Assignees
Labels
discussion window This issue affects some UI element

Comments

@bpe2
Copy link
Collaborator

bpe2 commented Sep 21, 2020

Seeing a Node in the 3D scene is nice, and there are some properties we can keep track of by changing things like the color of the model, but ns-3 supplies a lot of data that is much easier to comprehend in a text format, so add a widget that displays details about a given Node at the current time.

Widget Items

This widget should be able to display basic data about the Node, already known to the application (like location, name, and base/highlight color), as well as some new data (like IP addresses).

For now, at least, We'll keep this information read only, but we may allow for changes to visual elements (like Name and Base/Highlight color) later

Here's a list of some properties to show on the widget, their types, and where they came from:

Name

  • Node ID [unsigned int] (ns-3)
  • Node Name [string] (NetSimulyzer)

Color

  • BaseColor [color] (NetSimulyzer)
  • HighlightColor [color] (NetSimulyzer)
  • Motion Trail Color [color] (NetSimulyzer)

Position

  • Location [x,y,z double] (ns-3)
  • Offset [x,y,z double]
  • Orientation [x,y,z double] (NetSimulyzer)

Size

  • Scale [double] (NetSimulyzer)
  • ScaleAxes [x,y,z also double] (NetSimulyzer)
  • Height [double] (NetSimulyzer)
  • Width [double] (NetSimulyzer)
  • Depth [double] (NetSimulyzer)

Network

  • IP address(es) v4/v6 [string] (ns-3)
  • MAC address(es) [string] (ns-3)

If there's anything interesting that NetAnim uses, that would be good too

Here's a screenshot of NetAnim's node info
image

Resources

https://doc.qt.io/qt-5/modelview.html
https://doc.qt.io/qt-5/qtwidgets-itemviews-simpletreemodel-example.html

@richardrouil
Copy link
Collaborator

How about:

  • List of applications
  • List of net devices (I assume that would be needed to get the IP/MAC of each interface)

Note that the lists can change during simulation (like adding/removing netdevices) so we may need to handle those types of events by creating protocol handlers and net device listeners.

@bpe2 bpe2 added the window This issue affects some UI element label Jun 7, 2022
bpe2 added a commit that referenced this issue Jul 7, 2022
@bpe2 bpe2 assigned bpe2 and unassigned meganlizambri Aug 8, 2022
bpe2 added a commit that referenced this issue Aug 8, 2022
…d dynamic updating, track expanded items

See: #15
bpe2 added a commit that referenced this issue Aug 8, 2022
bpe2 added a commit that referenced this issue Aug 8, 2022
bpe2 added a commit that referenced this issue Aug 8, 2022
bpe2 added a commit that referenced this issue Aug 10, 2022
bpe2 added a commit that referenced this issue Aug 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion window This issue affects some UI element
Projects
None yet
Development

No branches or pull requests

3 participants