CN106341264B - Packet equipment control interface generates and shows method and device - Google Patents

Packet equipment control interface generates and shows method and device Download PDF

Info

Publication number
CN106341264B
CN106341264B CN201610810596.0A CN201610810596A CN106341264B CN 106341264 B CN106341264 B CN 106341264B CN 201610810596 A CN201610810596 A CN 201610810596A CN 106341264 B CN106341264 B CN 106341264B
Authority
CN
China
Prior art keywords
pdevice
control
cdevice
equipment
wall
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610810596.0A
Other languages
Chinese (zh)
Other versions
CN106341264A (en
Inventor
向绪友
周超
贺艺
廖立强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hu-Nan's Agriculture Information And Graduate School Of Engineering
Original Assignee
Hu-Nan's Agriculture Information And Graduate School Of Engineering
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hu-Nan's Agriculture Information And Graduate School Of Engineering filed Critical Hu-Nan's Agriculture Information And Graduate School Of Engineering
Priority to CN201610810596.0A priority Critical patent/CN106341264B/en
Publication of CN106341264A publication Critical patent/CN106341264A/en
Application granted granted Critical
Publication of CN106341264B publication Critical patent/CN106341264B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/22Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks comprising specially adapted graphical user interfaces [GUI]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements

Abstract

The present invention discloses a kind of packet equipment control interface and generates and show method and device, can be improved control operating efficiency.The described method includes: S1, being downloaded from host computer or obtaining controlled device description information from local;S2, analyzing device description information are grouped equipment according to device descriptive information, obtain device packets list, and each grouping includes multiple equipment;S3, the equipment of same types one or more in grouping is combined into equipment complex, for equipment complex, according to equipment controlling feature generating device control panel;S4, grouping control wall is generated based on the contained equipment complex control panel of grouping;S5, show group list and grouping control wall i.e. control interface, switch between the constant group of identical device control panel screen display location in realization control interface.

Description

Packet equipment control interface generates and shows method and device
Technical field
The present invention relates to equipment control fields, and in particular to a kind of packet equipment control interface generates and shows method and dress It sets.
Background technique
Currently, generally comprising a list, one group of interface, display device and event response towards packet equipment control application There are certain corresponding relationship, interface corresponding with list items contains the control of all devices in group for device, list items and interface Panel processed triggers sequence of events (treatment process), specific steps are as follows: (1) beat when to control the equipment of some group Group list is opened, (2) open packet interface, and (3) roll screen repeatedly and find device control panel, and (4) trigger panel event.
In existing equipment grouping control technology is realized, above-mentioned steps can be abstracted into: (1) opening packet interface, (2) addressing (at interface by finding the analysis of equipment control plane), (3) trigger panel event.(this step is referred to as " three-step approach ").
Although this step is effective to all demands for control, to certain demands for control, especially to physically independent logical On the equipment that is integrated is whole and part demand for control, linkage control demand, control operating efficiency is not highest.
Summary of the invention
In view of the shortcomings of the prior art and defect, the present invention provides a kind of packet equipment control interface and generates and show Method and device.
On the one hand, the embodiment of the present invention proposes that a kind of packet equipment control interface generates and shows method, comprising:
S1, it is downloaded from host computer or obtains controlled device description information from local;
S2, analyzing device description information are grouped equipment according to device descriptive information, obtain device packets list, Each grouping includes multiple equipment;
S3, the equipment of one or more same types equipment complex will be combined into grouping, for equipment complex, according to setting Standby controlling feature generating device control panel;
S4, grouping control wall is generated based on the contained equipment complex control panel of grouping;
S5, show group list and grouping control wall i.e. control interface, realize identical device control panel in control interface Switch between the constant group of screen display location.
Optionally, the S2, comprising:
Parse the device descriptive information, generating device entity pDevice, wherein each device descriptive information is corresponding Armamentarium information is encapsulated in one pDevice, pDevice, pDevice has group identifier pDevice.gid, group name PDevice.gName, equipment Serial Number pDevice.sn, device type pDevice.type, device name pDevice.name, Equipment additional information pDevice.desc, equipment controlling feature pDevice.cFeature and equipment current operating conditions pDevice.state;
A table pdList is generated, all pDevice are added in pdList;
The identical pDevice of pDevice.gid and pDevice.type all in pdList is merged into one compound to set Standby, equipment complex is indicated with cDevice, and cDevice has the attribute cDevice.container for indicating pDevice container, and Selectivity has pDevice's contained by the attribute cDevice.gid for the pDevice.gid for indicating contained pDevice, expression The attribute cDevice.gName of pDevice.gName, the cDevice.size for indicating pDevice number for including, contained by expression The attribute of the pDevice.name of pDevice contained by the attribute cDevice.type of the pDevice.type of pDevice, expression The attribute cDevice.cFeature of the pDevice.cFeature of pDevice contained by cDevice.name, expression, it indicates to be directed toward The cDevice.panel of control panel view, cDevice have the control of independent control, centralized control and combination control special Sign;
CDevice is grouped by cDevice.gid value, group is indicated with cdGroup, and all cdGroup are added to CdgList container, wherein cdGroup has the attribute cdGroup.container for indicating cDevice container, and selectively deposits The cDevice's contained by the attribute cdGroup.index of the cDevice.gid for indicating contained cDevice, expression The attribute cdGroup.name of cDevice.gName, it the attribute cdGroup.size for indicating cDevice number for including, indicates It is directed toward the attribute cdGroup.wall of control wall view.
Optionally, the control panel, comprising: one or more controllers, one or 0 linkage controller, a group Between omniselector, and one or more logo display, wherein
The controller is made of one or more control units, structurally meets the controlling feature of cDevice, and described When control unit is in the state of can trigger, E4 event is generated after being triggered, and control instruction is generated in event response and is sent to Equipment or host computer or other systems;
The linkage controller is made of multiple control units, structurally meets the controlling feature of cDevice;Linkage control All pDevice in cDevice can be made to generate E4 event after some control unit is triggered in device;
Omniselector is made of one or more views between described group, and E3 event can be generated by triggering these views, is rung in event Middle execution L2 is answered to operate, L2 is the control wall handover operation for doing control panel alignment in the window gwallWin of display;
Omniselector is associated with cDevice between described group, the corresponding omniselector of cDevice, omniselector appearance, structure and Any suitable mode may be selected in layout;
The logo display uses attribute associated description information for showing equipment;
The control panel responds E5 event, by control instruction execution state information contained by E5 and equipment running status information It is reflected in control interface with form appropriate.
Optionally, the control wall is a view, can X axis and Y-axis roll, grouping generation one with it is contained The adaptable control wall of equipment,
The control wall is presented in the window gwallWin of display when running,
The control wall of grouping cdGroup is denoted as cdGroup.wall, there are two memories, cdGroup.wallW and CdGroup.wallH, cdGroup.wallW control the width of wall view for it, and cdGroup.wallH controls wall view for it Highly,
The control panel is the sub- view for controlling wall, and when moving row, all devices control panel is all filled in a grouping Enter to grouping control and is referred to as in the region of dpa for one within the walls.
Optionally, control interface is made of window glistWin and window gwallWin, wherein glistWin carries view GlistView, gwallWin carry cdGroup.wall,
The glistView can be rolled, and be made of multiple sub- views, show cdgList content, and a grouping is one corresponding Sub- view is denoted as glistItem, and triggering glistItem generates E1 event, can parse grouping information from E1,
The gwallWin controls wall for showing alive packet,
The alive packet is denoted as AG, be stored in can global reference memory,
The default any grouping being directed toward in cdgList of the AG.
Optionally, the S5, comprising:
Show the control interface in the display, response shows event;Wherein,
The event that shows refers to E1 event, E2 event and E3 event,
The E1 event is generated by glistItem, and control interface is made to do L1 operation,
The E2 event is generated by control wall, and control interface is made to do SE operation,
L1 is the control wall handover operation that dpa alignment is done in gwallWin, and SE operation is in window gwallWin rolling The control wall carried, or extension or contraction window gwallWin itself.
Optionally, the L1 operation, process are as follows:
It is parsed from E1 and generates grouping associated by the glistItem of this event, indicated with NG1;
With the control wall of the control wall of the NG1 replacement gwallWin alive packet AG currently carried, AG and NG1 are The alias of cdGroup, NG1.wall and AG.wall are the control walls of their meaning cdGroup;
The position of dpa in control wall based on NG1 rolls NG1.wall, makes the left side in the region dpa in the control wall of NG1 Upper angle be located at window gwallWin the upper left corner or a certain deviation post;
Cancel glistItemAGAlive packet label, glistItemAGIt is corresponding in glistView for alive packet AG Sub- view;
GlistItem is setNG1Alive packet label, indicate glistItemNG1Corresponding NG1.wall, glistItemNG1 To be grouped NG1 corresponding sub- view in glistView;
It sets AG and is directed toward NG1, NG1 is made to become new alive packet.
Optionally, the L2 operation, process are as follows:
The cDevice for generating this event is parsed from E3, is denoted as AD, while parsing operation and being intended to, and is calculated according to intention The grouping that this navigation reaches, referred to as targeted packets, are denoted as NG2, and cDevice identical with AD in NG2 is denoted as ND;
With the control wall of the control wall of the NG2 replacement gwallWin current active grouping AG currently carried;
Based on ND positioning and rolling NG2.wall, making the position of ND in the window with AD, present position is identical in the window;
Cancel the alive packet label of the corresponding glistItem of AG;
The alive packet label of the corresponding glistItem of NG2 is set;
It sets AG and is directed toward NG2, NG2 is made to become new alive packet.
Optionally, if glistWin is on a left side, and gwallWin is in the right side, the SE operation, process are as follows:
Operation is parsed from E2 to be intended to, and judges whether it is that X axis scroll operation is then tied if not X axis scroll operation Beam;Or
If X axis scroll operation, then according to rolling distance and direction, or the big of glistWin and gwallWin is adjusted It is small, or roll the control wall of current active grouping AG.
The size of the adjustment glistWin and gwallWin is constrained by the following conditions:
GlistWin width is reduced when 1.gwallWin width increases;
GlistWin width increases when 2.gwallWin width is reduced;
The sum of 3.gwallWin width and glistWin width are always equal to display width.
On the other hand, the embodiment of the present invention proposes that a kind of packet equipment control interface generates and display device, comprising:
Acquiring unit, for being downloaded from host computer or obtaining controlled device description information from local;
Grouped element is used for analyzing device description information, is grouped according to device descriptive information to equipment, obtains equipment Group list, each grouping include multiple equipment;
Recombiner unit, for the equipment of same types one or more in grouping to be combined into equipment complex, for compound Equipment, according to equipment controlling feature generating device control panel;
Generation unit, for generating grouping control wall based on the contained equipment complex control panel of grouping;
Show unit, for showing group list and grouping control wall i.e. control interface, realizes identical in control interface set Switch between the standby constant group of control panel screen display location.
The invention has the following beneficial effects:
The present invention is for " same category of device successively controls " demand present in device packets control, by adding in packet interface " navigation device " and respective packets Interface Construction method are filled, packet interface is switched based on " navigation device ", cuts the interface between group Keep the display position of the control panel (equipment of this secondary control) of target device in a display device constant when changing, to omit Fall the step 2 in " three-step approach ", improve control operating efficiency, and by being accurately positioned, can reduce the probability of maloperation.
Detailed description of the invention
Fig. 1 is the flow diagram that packet equipment control interface of the present invention generates and shows one embodiment of method;
Fig. 2 is the flow diagram that packet equipment control interface of the present invention generates and shows another embodiment of method;
Fig. 3 is the schematic diagram of one embodiment of control panel of the present invention;
Fig. 4 is the schematic diagram of another embodiment of control panel of the present invention;
Fig. 5 is the schematic diagram of present invention control one embodiment of wall;
Fig. 6 is the schematic diagram for the control panel that present invention control is disposed within the walls;
Fig. 7 is the schematic diagram of inventive display and window;
Fig. 8 is the display effect schematic diagram of control interface of the present invention;
Fig. 9 is the schematic diagram of changing interface front and back control panel between the group being aligned based on control panel;
Figure 10 is that SE operates front and back glistWin and gwallWin schematic diagram;
Figure 11 is the structural schematic diagram of packet equipment control interface of the present invention generation and one embodiment of display device.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical solution in the embodiment of the present invention is explicitly described, it is clear that described embodiment is the present invention A part of the embodiment, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not having Every other embodiment obtained under the premise of creative work is made, shall fall within the protection scope of the present invention.
Referring to Fig. 1, the present embodiment discloses a kind of packet equipment control interface and generates and show method, comprising:
S1, it is downloaded from host computer or obtains controlled device description information from local;
S2, analyzing device description information are grouped equipment according to device descriptive information, obtain device packets list, Each grouping includes multiple equipment;
S3, the equipment of one or more same types equipment complex will be combined into grouping, for equipment complex, according to setting Standby controlling feature generating device control panel;
S4, grouping control wall is generated based on the contained equipment complex control panel of grouping;
S5, show group list and grouping control wall i.e. control interface, realize identical device control panel in control interface Switch between the constant group of screen display location.
As shown in Fig. 2, in addition to obtaining the controlled device description information downloaded from host computer from data-interface to realize grouping Showing for appliance control interface is outer, and the following contents may be implemented based on the solution of the present invention:
S6, response E4 event, generate control instruction and are sent to equipment or host computer or other systems, from host computer or equipment Or other system accepting device running state informations, event E5 is generated, E5 is responded instruction execution state and set by control panel Standby operating status is reflected in control interface with form appropriate.
Content according to the present invention is described in detail below.
The S1,
Synchronous upper computer equipment controls information, the controllable physical equipment that signified equipment is covered for the present invention, such as wind Mechanical, electrical magnet valve, roller shutter etc..
When running for the first time, all devices information is downloaded;When running again, increment facility information is downloaded, deletion is not deposited In equipment;In operational process, periodic test equipment alteration state increases and decreases equipment and to maintain equipment information according to different condition, Or after receiving upper computer equipment unusual fluctuation notice, reconstruct unusual fluctuation associated packets interface.
The S2,
Analyzing device description information, generating device entity pDevice, the corresponding pDevice of a device descriptive information, Armamentarium information is encapsulated in pDevice.
Specifically, a table pdList can be generated, all pDevice are added in pdList.If there is n Equipment passes through i-th of equipment in pdList [i] reference list, wherein 0≤i < n.
Realize the present invention, facility information includes at least the following contents, and pDevice at least exists with properties.
Content description Way of reference
Group identifier pDevice.gid
Group name pDevice.gName
Equipment Serial Number pDevice.sn
Device type pDevice.type
Device name pDevice.name
Equipment additional information pDevice.desc
Equipment controlling feature pDevice.cFeature
Equipment current operating conditions pDevice.state
The identical pDevice of pDevice.gid and pDevice.type all in pdList is merged into one compound to set Standby, equipment complex is indicated with cDevice, and cDevice is only logically present.
CDevice is included at least with properties:
Attribute-name/way of reference Explanation
cDevice.container PDevice container
CDevice selectively includes with properties:
CDevice has following controlling feature:
1. equipment contained by can independent control;
Equipment contained by 2. can centralized control, as started simultaneously or closing all in cDevice.container pDevice;
3. equipment contained by can combine control, such as open or close part pDevice therein at some time point.
Such as, it to greenhouse, may be selected to form side window, each roller shutter independent control, multiple roller shutter linkage controls with multiple roller shutters. So-called linkage control refers to that part or all of roller shutter is opened simultaneously or collapsed simultaneously, or open in a certain order, etc..Wherein, it rolls up Curtain is pDevice, and side window is cDevice.
Control efficiency can be improved by above-mentioned controlling feature, reduce maloperation, enhance intelligence degree.
CDevice is grouped by cDevice.gid value, if there is m different values, is then divided into m group, group is used CdGroup is indicated.
CdGroup is included at least with properties:
Attribute-name/way of reference Explanation
cdGroup.container CDevice container
CdGroup selectively includes with properties:
Attribute-name/way of reference Explanation
cdGroup.index The cDevice.gid of contained cDevice
cdGroup.name The cDevice.gName of contained cDevice
cdGroup.size CDevice number in Container
cdGroup.wall It is directed toward control wall view
It is preferred that all cdGroup are added to cdgList container, it is grouped with i-th in cdgList [i] reference list, In, 0≤i < m.
The S3,
CDevice control panel is generated,
The control panel, is the view that a system is supported, view refers to the View of similar Android or spread out by View Raw entity or component.Include: control panel between one or more controllers, one or 0 linkage controller, a group Omniselector and one or more logo displays.If Fig. 3 and Fig. 4 are the schematic diagrames of two kinds of control panels.
The device control panel of cDevice is quoted by cDevice.panel.
The controller is made of multiple control units, structurally meets the controlling feature of cDevice.
When described control unit is in the state of can trigger, E4 event is generated after (quilt) triggering.
Described control unit be set to triggerable state or whether be set to triggerable state by cDevice internal logic setting and Determine.
Described control unit can trigger the judgement of state and setting and can be completed by the logic except cDevice.
A sub- view of control panel may be implemented into the controller, can also realize into and exist independently of control panel View.
The linkage controller is made of multiple control units, structurally meets controlling feature, has the feature that triggering Some control unit is equal to while triggering the control of the identical function of realization of all pDevice in cDevice.container Unit processed generates a series of E4 event.
The linkage controller may be implemented into part and trigger, and when cDevice.size is 1, linkage controller can not See, in design can be reciprocity (as shown in Figure 4) with controller, it can be a sub- view of control panel, or independently deposit But with the associated view of control panel.
The omniselector is made of one or more views, and E3 event can be generated by touching these views.
E3 event makes display screen switching control interface, and makes the same type control panel in new interface in display screen when switching In position it is identical as position of the control panel in display screen of excitation switching, or certain operation is carried out based on same position Position afterwards.
Switching refers to previous interface or the latter interface or first interface or the last one interface or is calculated with certain Boundary that method is selected and or replace current interface with the interface that some way generates.
When switching, target interface and processing logic are shown by E3 event or are implied explanation.
The omniselector be control panel a sub- view or it is self-existent but with the associated view of control panel Figure.
The omniselector appearance, structure and layout may be selected any suitable mode and realize.
The logo display, for showing panel identity information, such as title, function and usage illustrate.Showing content can Letter can multiply, and form is unlimited, can be text, pattern or other unlisted types, and appearance, structure and layout may be selected Any suitable mode is realized.
The logo display is a sub- view of control panel or self-existent but associated with control panel View.
The control panel can also include 2 memories, be respectively as follows:
CDevice.panel.offsetX, for storing the control panel in the X axis position for controlling wall at it;
CDevice.panel.offsetY, for storing the control panel in the Y-axis position for controlling wall at it;
CDevice.panel.offsetX and cDevice.panel.offsetY value is X of the control panel in control wall Axial and Y-axis absolute position or relative position, or pass through certain operation result.
The control panel can also include following 2 memories:
CDevice.panel.height, for storing the panel height;
CDevice.panel.width, for storing the panel width.
After the panel generates, its height and width are calculated according to equipment controlling feature, are respectively stored in In cDevice.panel.height and cDevice.panel.width.
The S4,
Each grouping in cdgList is acted on, for generating the control wall of grouping, the control wall for being grouped cdGroup is logical Cross cdGroup.wall reference.
The control wall, is the view that a system is supported, view refers to the View of similar Android or derived by View And the entity or component come.
The control wall construction is as shown in Figure 5.Wherein,
Dpa is to control control panel deployment region within the walls, a height of dpaH, width dpaW.
MarginL, marginT, marginR and marginB are that dpa is controlling the left margin in wall, top margin, rightmargin And bottom margin.Preferably, marginT and marginB is greater than or equal to height of display.
WallH is the height for controlling wall, and wallW is the width for controlling wall.
The control wall, can X axis and Y-axis rolling.
The control wall, there are two memories, respectively cdGroup.wall.scrollX and CdGroup.wall.scrollY, for storing the rolling distance of X axis and Y-axis of the control wall in display window. CdGroup.wall.scrollX initializes marginL, and cdGroup.wall.scrollY is initially at marginT.
The control wall, can trigger the E2 event that generates under certain conditions, and signified condition is sliding screen, key etc..
The value of the dpaH and dpaW is related to the deployment scheme of control panel number and control panel in dpa in group. When there is m control panel in cdGroup, and when using equidistant for the spacing as shown in FIG. 6 deployment scheme of deployment scheme, then:
DpaW=2*dx+max (cDevice.width),
DpaH=(m+1) * dy+ ∑ cDevice.Height,
Wherein, that maximum value of all control panel height, ∑ in max (cDevice.width) expression group The sum of all control panel width in cDevice.Height expression group.
Dpa placement scheme shown in described Fig. 6 is one of feasible dpa placement scheme.When using other schemes, dpaW It is calculated with the dpaH method being adapted with scheme.
The wallH and wallW is its width, and calculation method is as follows:
WallH=marginT+dpaH+marginB,
WallW=marginL+dpaW+marginR.
Wherein, as wallW < gwallWinW, wallW can be set to the value more than or equal to gwallWinW, GwallWinW is the width of the indicator gate gwallWin of carrying control wall.
With the view of wallH and wallW building cdGroup.wall.
The control panel cDevice.panel for being grouped each cDevice is added to cdGroup.wall as sub- view In, and be deployed in dpa.It is saved in cDevice.panel.offsetX and cDevice.panel.offsetY simultaneously Position of the cDevice.panel in cdGroup.wall.
Alternatively, location information of the cDevice.panel in cdGroup.wall any can also be led to other It crosses cdGroup and/or cDevice and makees index way of reference storage.
Particularly, when using being laid out shown in Fig. 6, the initial position of first control panel is in cdGroup.wall (marginL+dx, marginT+dy).
Can be stored in cdGroup dpa control wall in position, that is, set cdGroup.dpaX (dpa left border with Control the distance between wall left border) it is (marginL+ Δ X) and cdGroup.dpaY (in dpa boundary and control wall The distance between lateral boundaries) it is (marginT+ Δ Y), wherein Δ X and Δ Y is arbitrary value.
Particularly, it may need to reconstruct cdGroup.wall when window gwallWin size variation.
The S5,
Show control interface in the display, response shows event.
In the present embodiment, the control interface includes two windows:
1, glistWin, for showing that cdgList, particular content can be the content of group name or figure or other forms;
2, gwallWin, for showing cdGroup.wall.
In the present embodiment, display only display control interface.Height of display is stored in memory screenH, display Device width is stored in memory screenW.
The height glistWinH of the glistWin is equal to screenH, width glistWinW,
The height gwallWinH of the gwallWin is equal to screenH, width gwallWinW.
The width gwallWinW value of glistWin the width glistWinW and gwallWin meet following relationship (1):
GlistWinW+gwallWinW=screenW (1),
One of the display and window glistWin, gwallWin relationship as shown in Figure 7
The glistWin and gwallWin have the feature that
1.gwallWin can dynamic X axis it is flexible;
GlistWin does corresponding complementary operation when 2.gwallWin is flexible, guarantees that relationship (1) is always set up;
3.glistWinW is not less than glistWinWMIN。glistWinWMINMore than or equal to 0;
4.glistWinW is not more than glistWinWMAx。glistWinWMAXMore than or equal to 0.
Window glistWin and gwallWin contained by the control interface, comprising:
1.glistWin carries a rotatable view glistView, is made of multiple sub- views, and sub- view is used GlistItem is indicated.The quantity of glistItem is greater than or equal to grouping number m, a cdGroup and at least has one GlistItem is associated, and the glistItem for being associated with cdGroup shows the title of cdGroup.Each glistItem can trigger E1 event is generated, its associated cdGroup of glistItem and this glistItem of triggering can be parsed from E1 event.
2.gwallWin carries cdGroup.wall.
When the control interface shows for the first time, glistWin loads glistView, and gwallWin loads default active point Group.In the present embodiment, default active packet configuration regards the son that cdgList [0] is corresponded in glistView at cdgList [0] Figure background be set to cdGroup.wall same background, indicating the control wall that loads in gwallWin is grouping cdgList [0] Control wall.It initializes AG and is directed toward cdgList [0].
The control interface shows the shown just like (a) in Fig. 8 and (b) of effect, and (a) figure is " orchid greenhouse " in Fig. 8 Control interface, (b) figure is the control interface of " seedling cultivation greenhouse ".
The event that shows refers to E1 event, E2 event and E3 event,
The E1 event is generated by the glistItem in glistView, and control interface is made to do L1 operation.
The E2 event is generated by control wall, and control interface is made to do SE operation.
The E3 event is generated by the omniselector of control panel, and control interface is made to do L2 operation.
Note: L1 is the control wall handover operation that dpa alignment is done in gwallWin.L2 is that control plane is done in gwallWin The control wall handover operation of plate alignment.SE operation for window gwallWin roll alive packet AG control wall, or extension or Shrink window gwallWin itself.
The L1 operation, process are as follows:
1. being parsed from E1 and being grouped cdGroup associated by the glistItem for generating this event, indicated with NG1;
2. the control wall AG.wall of the alive packet AG with the control wall replacement gwallWin carrying of NG1.
3. being based on dpa positioning and rolling NG1.wall, the upper left corner in its region dpa is made to be located at the upper left corner of window gwallWin Or a certain deviation post.
That is:
ScrollX1=NG1.dpaX;
ScrollY1=NG1.dpaY;
NG1.wall is rolled to (scrollX1, scrollY1).
Alternatively,
ScrollX1=NG1.dpaX+ Δ X1;
ScrollY1=NG1.dpaY+ Δ Y1;
NG1.wall is rolled to (scrollX1, scrollY1);
Wherein, Δ X1 and Δ Y1 is any value.
4. cancelling glistItemAGAlive packet label.In present embodiment, restore glistItemAGBackground color It is set to glistView background color.Wherein, glistItemAGFor alive packet AG in glistView corresponding sub- view.
5. glistItem is arrangedNG1Alive packet label, indicate glistItemNG1Corresponding NG1.wall.This embodiment party In formula, by glistItemNG1Background color be set to the background color of NG1.wall.Wherein, glistItemNG1To be grouped NG1 The corresponding sub- view in glistView.
6. it is new alive packet that NG1, which is arranged, NG1 was both assigned to AG.
The L2 operation, process are as follows:
1. from E3 parse generate this event cDevice (being denoted as AD), while parse operation be intended to (it is previous, it is latter It is a, etc.), the grouping that this navigation reaches, referred to as targeted packets are calculated according to intention, are denoted as NG2;
Equipment identical as AD is denoted as ND in NG2.In present embodiment, identical equipment refers to that equipment device type is identical, both CDevice.type value is identical.
2. the AG.wall currently carried with NG2.wall replacement gwallWin.
3. the control wall NG2.wall based on ND positioning and rolling NG2.
That is:
ScrollX3=ND.panel.offsetX- (AD.panel.offsetX-scrollX2)
ScrollY3=ND.panel.offsetY- (AD.panel.offsetY-scrollY2)
NG2.wall is rolled to (scrollX3, scrollY3).
Alternatively,
ScrollX3=ND.panel.offsetX- (AD.panel.offsetX-scrollX2)+Δ X2
ScrollY3=ND.panel.offsetY- (AD.panel.offsetY-scrollY2)+Δ Y2
NG2.wall is rolled to (scrollX3, scrollY3).
Wherein, scrollX2 and scrollY2 is the rolling distance of AG.wall, in present embodiment, value directly from AG.wall is obtained.Δ X2 and Δ Y2 is any value.
4. cancelling the alive packet label of the corresponding glistItem of AG;
5. the alive packet label of the corresponding glistItem of NG2 is arranged;
6. it is new alive packet that NG2, which is arranged, (NG2 is assigned to AG).
((a) figure and (b) figure are respectively to switch front and back signal to the content change such as Fig. 9 of L2 operation front and back control interface in Fig. 9 Figure) shown in.
The SE operation, process are as follows:
1. parsing operation from E2 to be intended to, judge whether to be X axis scroll operation, if not X axis scroll operation, knot Otherwise beam executes step 2;
2. set rolling distance as Δ X3, if its absolute value be less than some given threshold values (such as 0.01, indicate to roll effect Fruit is unobvious, ignores), terminate.
If Δ X3 less than 0, corresponding to rolling to the left, is calculated:
X1=glistWinW+ Δ X3-glistWinWMIN
When x1 is greater than 0, glistWin size is adjusted, its width glistWinW (glistWinW-x1) is made.Adjustment GwallWin size makes its width gwallWinW (gwallWinW+x1).
If x1 less than 0, rolls AG.wall to (scrollX4+x1, scrollY4).
If Δ X3 is greater than 0, scroll right, calculate:
When scrollX4 is greater than 0,
X2=scrollX4- Δ X3.
If x2 is greater than 0, AG.wall is rolled to (scrollX4- Δ X3, scrollY4).
If x2 is less than or equal to 0, AG.wall is rolled to (0, scrollY4).
When scrollX4 is equal to 0,
X3=glistWinWMAX-glistWinW。
If x3=0, terminate,
If x3 is not equal to 0, x4=x3- Δ X3,
If x4 is less than 0, x4=x3.
GlistWin size is adjusted, glistWinW is made to be equal to (glistWinW+x4);GwallWin size is adjusted, is made GwallWinW is equal to (gwallWinW+x4).
Above-mentioned SE operating process is based on glistWin in left and the right layout of gwallWin calculating, if layout changes, Specific calculating process can also change, but expressed logic essence is constant.
The rolling distance that the value of scrollX4 and scrollY4 involved in SE operation is AG.wall, value can be from AG.wall is obtained.The size and location of SE operation front and back glistWin and gwallWin in the display in Figure 10 respectively as schemed (a) and shown in figure (b).
The S6,
The control of described device executes agency, responds E4 event, listens to and response apparatus operating status different condition.
The response E4 event refers to that the E4 event for capture does following processing:
CDevice, pDevice and control routine are parsed from E4.
It generates and the matched control instruction INS of pDevice.
Equipment or host computer are sent by INS.
An E5 event is generated, declaration control instruction has been sent.
The execution agency, from detection equipment operating status, works as discovering device in such a way that equipment or host computer are supported When pDevice actual motion state and pDevice.state are not inconsistent, an E5 event is generated, declaration equipment state has changed.
The E5 event can therefrom parse outgoing event relevant device information, control instruction information, control implementation progress letter Breath, running state information, temporal information, etc..
The E5 event is responded by control panel control instruction executing state and equipment running status form appropriate Reflect in control interface.
The event (being denoted as E1, E2, E3, E4 and E5), only a kind of program implementation, can use other equal ways Substitution, such as interrupt mode, message mechanism, semaphore, etc..
Referring to Figure 11, present embodiment discloses a kind of packet equipment control interface and generates and display device, comprising:
Acquiring unit 1, for being downloaded from host computer or obtaining controlled device description information from local;
Grouped element 2 is used for analyzing device description information, is grouped, is set to equipment according to device descriptive information Back-up Groups List, each grouping include multiple equipment;
Recombiner unit 3, for the equipment of same types one or more in grouping to be combined into equipment complex, for compound Equipment, according to equipment controlling feature generating device control panel;
Generation unit 4, for generating grouping control wall based on the contained equipment complex control panel of grouping;
Show unit 5, for showing group list and grouping control wall i.e. control interface, realizes identical in control interface set Switch between the standby constant group of control panel screen display location.
Although the embodiments of the invention are described in conjunction with the attached drawings, but those skilled in the art can not depart from this hair Various modifications and variations are made in the case where bright spirit and scope, such modifications and variations are each fallen within by appended claims Within limited range.

Claims (9)

1. a kind of packet equipment control interface generates and shows method characterized by comprising
S1, it is downloaded from host computer or obtains controlled device description information from local;
S2, analyzing device description information are grouped equipment according to device descriptive information, obtain device packets list, each Grouping includes multiple equipment;
S3, the equipment of same types one or more in grouping is combined into equipment complex, for equipment complex, according to equipment control Feature generating device control panel processed;
S4, grouping control wall is generated based on the contained equipment complex control panel of grouping;
S5, show group list and grouping control wall i.e. control interface, realize identical device control panel screen in control interface Switch between the constant group in display position;
Wherein, the S2, comprising:
Parse the device descriptive information, generating device entity pDevice, wherein each device descriptive information is one corresponding Armamentarium information is encapsulated in pDevice, pDevice, there are set of properties identifier pDevice.gid, group name by pDevice PDevice.gName, equipment Serial Number pDevice.sn, device type pDevice.type, device name pDevice.name, Equipment additional information pDevice.desc, equipment controlling feature pDevice.cFeature and equipment current operating conditions pDevice.state;
A table pdList is generated, all pDevice are added in pdList;
The identical pDevice of pDevice.gid and pDevice.type all in pdList is merged into an equipment complex, it is multiple Close equipment is indicated with cDevice, and cDevice has the attribute cDevice.container for indicating pDevice container, and selects Property have pDevice's contained by the attribute cDevice.gid of the pDevice.gid for indicating contained pDevice, expression The attribute cDevice.gName of pDevice.gName, the cDevice.size for indicating pDevice number for including, contained by expression The attribute of the pDevice.name of pDevice contained by the attribute cDevice.type of the pDevice.type of pDevice, expression The attribute cDevice.cFeature of the pDevice.cFeature of pDevice contained by cDevice.name, expression, it indicates to be directed toward The cDevice.panel of control panel view, cDevice have the control of independent control, centralized control and combination control special Sign;
CDevice is grouped by cDevice.gid value, group is indicated with cdGroup, and all cdGroup are added to cdgList Container, wherein cdGroup has the attribute cdGroup.container for indicating cDevice container, and selectively there is expression The cDevice.gName's of cDevice contained by the attribute cdGroup.index of the cDevice.gid of contained cDevice, expression The attribute cdGroup.size for the cDevice number that attribute cdGroup.name, expression include, it indicates to be directed toward control wall view Attribute cdGroup.wall.
2. the method according to claim 1, wherein the control panel, comprising: one or more controllers, One or 0 linkage controller, omniselector between a group, and one or more logo displays, wherein
The controller is made of one or more control units, structurally meets the controlling feature of cDevice, and the control When unit is in the state of can trigger, E4 event is generated after being triggered, and control instruction is generated in event response and is sent to equipment Or host computer;
The linkage controller is made of multiple control units, structurally meets the controlling feature of cDevice, in linkage controller Some control unit can make all pDevice in cDevice generate E4 event after being triggered;
Omniselector is made of one or more views between described group, and E3 event can be generated by triggering these views, in event response L2 operation is executed, L2 is the control wall handover operation that control panel alignment is done in the window gwallWin of display;
Omniselector is associated with cDevice, the corresponding omniselector of a cDevice, omniselector appearance, structure and layout between described group Any suitable mode may be selected;
The logo display uses attribute associated description information for showing equipment;
The control panel responds E5 event, control instruction execution state information contained by E5 and equipment running status information is used suitable When form be reflected in control interface;
Wherein, the E3 event is generated by the omniselector of control panel, and control interface is made to do L2 operation;The E4 event is used for Therefrom parse cDevice, pDevice and control routine;The E5 event for therefrom parse outgoing event relevant device information, Control instruction information, control implementation progress information, running state information and temporal information.
3., can X axis and Y-axis according to the method described in claim 2, it is characterized in that, the control wall is a view It rolling, a grouping generates the control wall being adapted with contained equipment,
The control wall is presented in the window gwallWin of display,
The control panel is the sub- view for controlling wall, and all devices control panel is loaded into grouping control in a grouping One is referred to as in the region of dpa within the walls.
4. according to the method described in claim 3, it is characterized in that, the control interface is by window glistWin and window GwallWin composition, wherein glistWin carries view glistView, and gwallWin carries cdGroup.wall,
The glistView can be rolled, and be made of multiple sub- views, show cdgList content, the corresponding son view of a grouping Figure is denoted as glistItem, and triggering glistItem generates E1 event, can parse grouping information from E1,
The gwallWin controls wall for showing alive packet,
The alive packet is denoted as AG, be stored in can global reference memory,
The default any grouping being directed toward in cdgList of the AG.
5. according to the method described in claim 4, it is characterized in that, the S5, comprising:
Show the control interface in the display, response shows event;Wherein,
The event that shows refers to E1 event, E2 event and E3 event,
The E1 event is generated by glistItem, and control interface is made to do L1 operation,
The E2 event is generated by control wall, and control interface is made to do SE operation,
L1 is the control wall handover operation that dpa alignment is done in gwallWin, and SE operation is is held in window gwallWin rolling The control wall of load, or extension or contraction window gwallWin itself.
6. according to the method described in claim 5, it is characterized in that, L1 operation, process are as follows:
It is parsed from E1 and generates grouping associated by the glistItem of this event, indicated with NG1;
With the control wall of the control wall of the NG1 replacement gwallWin alive packet AG currently carried;
The position of dpa in control wall based on NG1 rolls NG1.wall, makes the upper left corner in the region dpa in the control wall of NG1 The upper left corner or a certain deviation post positioned at window gwallWin;
Cancel glistItemAGAlive packet label, glistItemAGFor alive packet AG in glistView corresponding son View;
GlistItem is setNG1Alive packet label, indicate glistItemNG1Corresponding NG1.wall, glistItemNG1To divide Group NG1 corresponding sub- view in glistView;
It sets AG and is directed toward NG1, NG1 is made to become new alive packet.
7. according to the method described in claim 5, it is characterized in that, L2 operation, process are as follows:
The cDevice for generating this event is parsed from E3, is denoted as AD, while parsing operation and being intended to, this is calculated according to intention The grouping that navigation reaches, referred to as targeted packets, are denoted as NG2, and cDevice identical with AD in NG2 is denoted as ND;
With the control wall of the control wall of the NG2 replacement gwallWin current active grouping AG currently carried;
Based on ND positioning and rolling NG2.wall, making the position of ND in the window with AD, present position is identical in the window;
Cancel the alive packet label of the corresponding glistItem of AG;
The alive packet label of the corresponding glistItem of NG2 is set;
It sets AG and is directed toward NG2, NG2 is made to become new alive packet.
8. according to the method described in claim 5, it is characterized in that, and gWallWin is in the right side, the SE if glistWin is on a left side Operation, process are as follows:
Parse operation from E2 to be intended to, judge whether to be X axis scroll operation, if it is X axis scroll operation, according to roll away from From and direction, or adjustment glistWin and gWallWin size, or roll current active grouping AG control wall.
9. a kind of packet equipment control interface generates and display device characterized by comprising
Acquiring unit, for being downloaded from host computer or obtaining controlled device description information from local;
Grouped element is used for analyzing device description information, is grouped according to device descriptive information to equipment, obtains device packets List, each grouping include multiple equipment;
Recombiner unit, for the equipment of one or more same types equipment complex will to be combined into grouping, for equipment complex, According to equipment controlling feature generating device control panel;
Generation unit, for generating grouping control wall based on the contained equipment complex control panel of grouping;
Show unit, for showing group list and grouping control wall i.e. control interface, realizes identical equipment control in control interface Switch between the constant group in panel screen display position processed;
Wherein, the grouped element is specifically used for:
Parse the device descriptive information, generating device entity pDevice, wherein each device descriptive information is one corresponding Armamentarium information is encapsulated in pDevice, pDevice, there are set of properties identifier pDevice.gid, group name by pDevice PDevice.gName, equipment Serial Number pDevice.sn, device type pDevice.type, device name pDevice.name, Equipment additional information pDevice.desc, equipment controlling feature pDevice.cFeature and equipment current operating conditions pDevice.state;
A table pdList is generated, all pDevice are added in pdList;
The identical pDevice of pDevice.gid and pDevice.type all in pdList is merged into an equipment complex, it is multiple Close equipment is indicated with cDevice, and cDevice has the attribute cDevice.container for indicating pDevice container, and selects Property have pDevice's contained by the attribute cDevice.gid of the pDevice.gid for indicating contained pDevice, expression The attribute cDevice.gName of pDevice.gName, the cDevice.size for indicating pDevice number for including, contained by expression The attribute of the pDevice.name of pDevice contained by the attribute cDevice.type of the pDevice.type of pDevice, expression The attribute cDevice.cFeature of the pDevice.cFeature of pDevice contained by cDevice.name, expression, it indicates to be directed toward The cDevice.panel of control panel view, cDevice have the control of independent control, centralized control and combination control special Sign;
CDevice is grouped by cDevice.gid value, group is indicated with cdGroup, and all cdGroup are added to cdgList Container, wherein cdGroup has the attribute cdGroup.container for indicating cDevice container, and selectively there is expression The cDevice.gName's of cDevice contained by the attribute cdGroup.index of the cDevice.gid of contained cDevice, expression The attribute cdGroup.size for the cDevice number that attribute cdGroup.name, expression include, it indicates to be directed toward control wall view Attribute cdGroup.wall.
CN201610810596.0A 2016-09-08 2016-09-08 Packet equipment control interface generates and shows method and device Active CN106341264B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610810596.0A CN106341264B (en) 2016-09-08 2016-09-08 Packet equipment control interface generates and shows method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610810596.0A CN106341264B (en) 2016-09-08 2016-09-08 Packet equipment control interface generates and shows method and device

Publications (2)

Publication Number Publication Date
CN106341264A CN106341264A (en) 2017-01-18
CN106341264B true CN106341264B (en) 2019-07-12

Family

ID=57822498

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610810596.0A Active CN106341264B (en) 2016-09-08 2016-09-08 Packet equipment control interface generates and shows method and device

Country Status (1)

Country Link
CN (1) CN106341264B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111367220B (en) * 2020-03-23 2021-07-23 中国建设银行股份有限公司 Internet of things equipment control method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101278252A (en) * 2005-09-07 2008-10-01 微软公司 Command user interface for displaying selectable functionality controls in a database application
CN102754038A (en) * 2010-02-09 2012-10-24 Somfy两合公司 Method for operating a control device for a home automation apparatus
CN103580928A (en) * 2013-11-19 2014-02-12 北京恒泰实达科技股份有限公司 System and method for visually controlling and operating devices
CN104246632A (en) * 2012-03-08 2014-12-24 Abb技术有限公司 System and method for visualizing device data and network of industrial plant in display

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101278252A (en) * 2005-09-07 2008-10-01 微软公司 Command user interface for displaying selectable functionality controls in a database application
CN102754038A (en) * 2010-02-09 2012-10-24 Somfy两合公司 Method for operating a control device for a home automation apparatus
CN104246632A (en) * 2012-03-08 2014-12-24 Abb技术有限公司 System and method for visualizing device data and network of industrial plant in display
CN103580928A (en) * 2013-11-19 2014-02-12 北京恒泰实达科技股份有限公司 System and method for visually controlling and operating devices

Also Published As

Publication number Publication date
CN106341264A (en) 2017-01-18

Similar Documents

Publication Publication Date Title
CN104216752B (en) A kind of information loading method and device based on window
CN106527722B (en) Exchange method, system and terminal device in virtual reality
CN102736849B (en) Menu layout processing method and device
CN102394778B (en) The display methods and device of network topology
CN104216773B (en) View switching method and apparatus
CN107256121A (en) Control method and device, computer installation and the readable storage medium storing program for executing of control
CN106951163A (en) A kind of display control method and device
CN106155454A (en) A kind of interface display method, device and electronic equipment
CN104737504A (en) System and method for efficient use of flow table space in a network environment
CN106873863A (en) The method to set up and device of a kind of changing interface animation
CN105446792B (en) A kind of dispositions method of virtual machine, deployment device and management node
CN105389246A (en) Interface topic dynamic display control method and system
CN106779218A (en) A kind of Forecasting Methodology of personnel activity track
CN110354506A (en) Game operation method and device
CN106341264B (en) Packet equipment control interface generates and shows method and device
CN109814768A (en) Method, apparatus, computer equipment and the storage medium of the position optimization of suspended frame
CN106339250A (en) Management method of virtual memory of computer
CN103473041B (en) A kind of visual data processing method and system
CN109388472A (en) Wallpaper displaying method and device, electronic equipment
CN108762597A (en) The method for drafting and E-book reader of E-book reader handwriting
US20230405460A1 (en) In-game display controlling method, device and electronic equipment
CN106250042A (en) The method that exits, device and the electronic equipment of user interface
CN106155768A (en) Split screen runs the method and device of application
CN109164968A (en) Exchange method and device based on list
CN103677524A (en) Control method and device of presenting mode of navigation bar

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant