Standardizing proximity calculations
Devices, methods, and systems for standardizing proximity calculations are described herein. A method can include setting, by a computing device, a proximity attribute for each of a plurality of equipment relationship attributes for a user, receiving, by the computing device, a plurality of equipment items each having one of the plurality of equipment relationship attributes to another one of the plurality of equipment items, creating, by the computing device, a graph diagram including each of the plurality of equipment items coupled to one another by their respective equipment relationship attributes and the proximity attribute for their respective equipment relationship attributes, calculating, by the computing device using the graph diagram, a proximity between two of the plurality of equipment items, and providing, by the computing device, the calculated proximity to the user.
1 . A method, comprising:
setting, by a computing device, a proximity attribute for each of a plurality of equipment relationship attributes for a user:
receiving, by the computing device, a plurality of equipment items each having one of the plurality of equipment relationship attributes to another one of the plurality of equipment items;
creating, by the computing device, a graph diagram including each of the plurality of equipment items coupled to one another by their respective equipment relationship attributes and the proximity attribute for their respective equipment relationship attributes:
calculating, by the computing device using the graph diagram, a proximity between two of the plurality of equipment items;
providing, by the computing device, the calculated proximity to the user;
wherein the method further comprises:
setting a different proximity attribute for each of the plurality of equipment relationship attributes for a different user;
creating a different graph diagram including each of the plurality of equipment items coupled to one another by their respective equipment relationship attributes for the different user and their proximity attribute for their respective equipment relationship attributes for the different user;
calculating, using the different graph diagram, another proximity between two of the plurality of equipment items, and
providing, by the computing device, the other proximity to the user.
2 . The method of claim 1 , further comprising:
receiving a query for all equipment items up to a particular proximity from one of the plurality of equipment items;
scanning the graph diagram for all equipment items up to the particular proximity from the one of the plurality of equipment items; and
providing the equipment items that are up to the particular proximity from the one of the plurality of equipment items to the user.
3 . The method of claim 1 , wherein one of the plurality of equipment relationship attributes is an alias of relationship.
4 . The method of claim 3 , wherein the proximity attribute for the alias of relationship is set as zero.
5 . The method of claim 1 , wherein:
one of the plurality of equipment relationship attributes for the different user is an alias of relationship; and
the proximity attribute for the alias of relationship for the different user is set as one.
6 . A computing device, comprising:
a processor; and
a memory storing non-transitory machine-readable instructions to cause the processor to:
set a proximity attribute for each of a plurality of equipment relationship attributes for a user;
receive a plurality of equipment items each having one of the plurality of equipment relationship attributes to another one of the plurality of equipment items;
create a graph diagram including each of the plurality of equipment items coupled to one another by their respective equipment relationship attributes and the proximity attribute for their respective equipment relationship attributes;
receive a query for a proximity between two equipment items of the plurality of equipment items;
calculate, using the graph diagram, the proximity between the two equipment items of the plurality of equipment items;
provide the calculated proximity between the two equipment items of the plurality of equipment items to the user;
wherein the instructions cause the processor to:
set a different proximity attribute for each of the plurality of equipment relationship attributes for a different user;
create a different graph diagram including each of the plurality of equipment items coupled to one another by their respective equipment relationship attributes for the different user and their proximity attribute for their respective equipment relationship attributes for the different user;
calculate, using the different graph diagram, another proximity between two of the plurality of equipment items; and
provide the other proximity between the two equipment items of the plurality of equipment items to the different user.
7 . The computing device of claim 6 , wherein the instructions cause the processor to:
receive a different query for all equipment items up to a particular proximity from one of the plurality of equipment items;
scan the graph diagram for all equipment items up to the particular proximity from the one of the plurality of equipment items; and
provide the equipment items that are up to the particular proximity from the one of the plurality of equipment items to the user, wherein an equipment item of the provided equipment items that are up to the particular proximity have generated an alarm.
8 . The computing device of claim 6 , wherein the instructions cause the processor to set each of the plurality of equipment relationship attributes as a connected to relationship, a sends feed to relationship, an alias of relationship, or a parent of relationship.
9 . The computing device of claim 8 , wherein the instructions cause the processor to set the proximity attribute for the user to one for the connected to relationship, one for the sends feed to relationship, zero for the alias of relationship, and one for the parent of relationship.
10 . The computing device of claim 9 , wherein the instructions cause the processor to:
receive a different query for all equipment items up to a particular proximity from one of the plurality of equipment items from the user;
scanning the graph diagram for all equipment items up to the particular proximity from the one of the plurality of equipment items; and
providing the equipment items that are up to the particular proximity from the one of the plurality of equipment items to the user, wherein the provided equipment items include a first quantity of equipment items.
11 . The computing device of claim 10 , wherein the instructions cause the processor to set the proximity attribute for a different user to one for the connected to relationship, one for the sends feed to relationship, one for the alias of relationship, and one for the parent of relationship.
12 . The computing device of claim 11 , wherein the instructions cause the processor to:
receive the different query for all equipment items up to the particular proximity from one of the plurality of equipment items from the different user;
scanning the graph diagram for all equipment items up to the particular proximity from the one of the plurality of equipment items; and
providing the equipment items that are up to the particular proximity from the one of the plurality of equipment items to the user, wherein the provided equipment items include a second quantity of equipment items.
13 . The computing device of claim 12 , wherein the first quantity of equipment items is different than the second quantity of equipment items.
14 . A system, comprising:
a computing device configured to:
set a proximity attribute for each of a plurality of equipment relationship attributes for a user;
receive a plurality of equipment items, including a first equipment item and a second equipment item, each having one of the plurality of equipment relationship attributes to another one of the plurality of equipment items; and
create a graph diagram including each of the plurality of equipment items coupled to one another by their respective equipment relationship attributes and the proximity attribute for their respective equipment relationship attributes;
set a different proximity attribute for each of the plurality of equipment relationship attributes for a different user; and
create a different graph diagram including each of the plurality of equipment items coupled to one another by their respective equipment relationship attributes for the different user and their proximity attribute for their respective equipment relationship attributes for the different user;
an event and alarm system coupled to the computing device, wherein the event and alarm system is configured to generate an alarm for a third equipment item of a plurality of equipment items;
wherein the computing device is further configured to:
receive a query for all equipment items up to a particular proximity from the first equipment item of the plurality of equipment items;
scan the graph diagram for all equipment items up to the particular proximity from the first equipment items; and
provide the equipment items, including the second equipment item, that are up to the particular proximity from the first equipment item to the user.
15 . The system of claim 14 , wherein the second equipment item is the same as the third equipment item.
16 . The system of claim 15 , wherein the computing device is configured to:
set an equipment relationship attribute of the second equipment item and the third equipment item as an alias of relationship; and
set a proximity attribute for the user to zero for the alias of relationship.
17 . The system of claim 16 , wherein the computing device is configured to provide the equipment items, including the second equipment item and the third equipment item, that are up to the particular proximity from the first equipment item to the user responsive to setting the proximity attribute for the user to zero for the alias of relationship.
18 . The system of claim 16 , wherein the computing device is configured to provide the equipment items, including the second equipment item, that are up to the particular proximity from the first equipment item to the user responsive to setting the proximity attribute for the user to one for the alias of relationship.