Skip to content

More about the system

Gudjon edited this page Jun 1, 2017 · 1 revision

Users

There are three kinds of users (actors). "administrator", "power user/card creator" and a "normal user".

Administrator

Has the power to change/modify or delete all cards, and devices. He can also give a user access to a card, or a device, just like a card creator. This user is the only one who can upgrade, downgrade or delete users. He can f.example change a normal user to "administrator" or a "power user". He can also change a power user back to a normal user. He has total control of everything.

Power user

Is a person who is able to change or create cards or devices. He needs to know how to upload programs to the devices. He needs to know what a subnet is and basic information about networking. He needs to have access to the routers so he can setup IP addresses for the devices. He is the one who will be adding the available devices for everybody. This person will also be creating control-cards. A power user will become a Card creator when he has created a Card or has been given access to change a card.

Card creator

A card creator is a power user which has created a control card. He has the power to grant others access to his card. He can grant a normal user access to his card and that will allow the normal user to use his card. The normal user will also be able to press or view controls on his card. A card creator can also grant another power user to have a card creator privileges for his card.

User (normal user)

He knows how to use a browser and he also has recived information from the power user on how the control-cards work. He knows what the cards control and Do's and Don'ts about a device he Is able to control using the control-cards. All knowledge about the control-cards should be supplied by the power user.

Control card

A control card is a web-page which the normal user works with. On this card there are buttons or controls which allow the user to change or view the state of the different devices. One card can include controls for many devices. This control card is created by a power user. The creator of the card will also be the one who will give other users access to a card. By default only the user which created the card will have access to the card he created. The creator user can select any user and grant him an access to his card. The card creator is the only one who can modify it(with the exeption of the Administrator). He can grant other power user access to his card giving them the card-creator privileges. No other power user can access his card without the card-creator’s permission.

Control

A Control is a control class which can be used when creating a card. These Controls can be thought of as a library. One control could be f.example DiodeCtrl. DiodeCtrl could be a class which shows an image of a diode which a Card creator can use to display a pins values as a diode. Another control could be a slider which allows the Card creator to provide the user an easy control of a pins value by allowing the user to drag a button on a slider around to change a device pin value. The same user access rules apply to Control as where descriped in the Control Card section above.

Access to devices

If a user wants to access a device then the system will grant him access if the user is a power user. The system will only give a normal user access to a device through a control card that controls the device.

Later additions to the system / nice to have

  • Create a visual/drag'n drop editor, allowing power users create cards more easier.
  • Create a visual/drag'n drop editor, allowing power users create controls more easier.
  • Show running cards without the Ardos menu.