---
title: "QueryType类型"
author: "kang"
date: "2010-01-18T11:35:14Z"
tags: []
categories: ["企业架构"]
slug: "querytype"
draft: false
lastmod: "2010-01-19T11:09:29Z"
id: 573280
url: "https://kang.iteye.com/blog/573280"
---

主要是对功率和温度的查询

 

A query can be for the minimum, maximum or average temperature or power usage over the sample period. Each query can be for either a single node or a group of nodes.

PmaxN, PavgN, and PminN represent one power measurement of node `N` over the sample period.

Similarly, TmaxN, TavgN, and TminN represent one temperature measurement of node `N` over the sample period.

**Enumerator:**

 

**分类：MAX\_PWR** ，*AVG\_PWR和MIN\_PWR是一批；*

*MAX\_AVG\_PWR和MIN\_AVG\_PWR* 是一批；

*TOTAL\_MAX\_PWR，TOTAL\_AVG\_PWR和TOTAL\_MIN\_PWR是一批；*

*MAX\_INLET\_TEMP，AVG\_INLET\_TEMP和MIN\_INLET\_TEMP是一批。*

*[]()&lt;!-- doxytag: member="MAX\_PWR" ref="ggabfbb64a2ec7afa6cbb18aa171775c9ec" args="" --&gt;MAX\_PWR* 

The maximum power consumed by any single node within the specified entity:  
Max(Pmax1, Pmax2, "...", PmaxN)  
.

先分别对N个node取得各自最大功率，再求出N个值中的最大值。

 

*[]()&lt;!-- doxytag: member="AVG\_PWR" ref="ggabfbb64a2ec7afa6cbb18aa171775c9ec" args="" --&gt;AVG\_PWR* 

The average power consumption across all nodes within the specified entity:  
Avg(Pavg1, Pavg2, "...", PavgN)  
.

先分别对N个node取得各自平均功率，再求出N个值的平均值。

 

*[]()&lt;!-- doxytag: member="MIN\_PWR" ref="ggabfbb64a2ec7afa6cbb18aa171775c9ec" args="" --&gt;MIN\_PWR* 

The minimum power consumed by any single node within the specified entity:  
Min(Pmin1, Pmin2, "..." , PminN)  
.

先分别对N个node取得各自最小功率，再求出N个值中的最小值。

 

*[]()&lt;!-- doxytag: member="MAX\_AVG\_PWR" ref="ggabfbb64a2ec7afa6cbb18aa171775c9ec" args="" --&gt;MAX\_AVG\_PWR* 

The maximum group sampling (in a monitoring cycle) power in specified aggregation period for the sum of average power measurement in a group of nodes within the specified entity.

**Since:**

DCM SDK 1.5  
entity: Max(Sum\_t1(Pavg1, Pavg2, ... , PavgN),  
Sum\_t2(Pavg1, Pavg2, ... , PavgN),  
...  
Sum\_tn(Pavg1, Pavg2, ... , PavgN))

先对各个时间段内，各个node的平均功率值求和；再求出各个时间段功率平均值中的最大值。

*[]()&lt;!-- doxytag: member="TOTAL\_MAX\_PWR" ref="ggabfbb64a2ec7afa6cbb18aa171775c9ec" args="" --&gt;TOTAL\_MAX\_PWR* 

The maximum group sampling (in a monitoring cycle) power in specified aggregation period for sum of maximum power measurement in a group of nodes within the specified entity.

Redefined in DCM SDK 1.5  
entity: Max(Sum\_t1(Pmax1, Pmax2, ... , PmaxN),  
Sum\_t2(Pmax1, Pmax2, ... , PmaxN),  
...  
Sum\_tn(Pmax1, Pmax2, ... , PmaxN))

先对各个时间段内，各个node的最大功率值求和；再求出各个时间段功率最大值中的最大值。

 

*[]()&lt;!-- doxytag: member="TOTAL\_AVG\_PWR" ref="ggabfbb64a2ec7afa6cbb18aa171775c9ec" args="" --&gt;TOTAL\_AVG\_PWR* 

The average (in specified aggregation period) group power for sum of average power measurement in a group of nodes within the specified entity.

Redefined in DCM SDK 1.5(same result as DCM 1.0)  
entity: AVG(Sum\_t1(Pavg1, Pavg2, ... , PavgN),  
Sum\_t2(Pavg1, Pavg2, ... , PavgN),  
...  
Sum\_tn(Pavg1, Pavg2, ... , PavgN))

先对各个时间段内，各个node的平均功率值求和；再求出各个时间段功率平均值的平均值。

 

*[]()&lt;!-- doxytag: member="TOTAL\_MIN\_PWR" ref="ggabfbb64a2ec7afa6cbb18aa171775c9ec" args="" --&gt;TOTAL\_MIN\_PWR* 

The minimal group sampling (in a monitoring cycle) power in specified aggregation period for sum of minimum power measurement in a group of nodes within the specified entity.

Redefined in DCM SDK 1.5  
entity: Min(Sum\_t1(Pmin1, Pmin2, ... , PminN),  
Sum\_t2(Pmin1, Pmin2, ... , PminN),  
...  
Sum\_tn(Pmin1, Pmin2, ... , PminN))

先对各个时间段内，各个node的最小功率值求和；再求出各个时间段功率最小值中的最小值。

 

*[]()&lt;!-- doxytag: member="MIN\_AVG\_PWR" ref="ggabfbb64a2ec7afa6cbb18aa171775c9ec" args="" --&gt;MIN\_AVG\_PWR* 

The minimal group sampling (in a monitoring cycle) power in specified aggregation period for sum of average power measurement in a group of nodes within the specified entity.

**Since:**

DCM SDK 1.5  
entity: Min(Sum\_t1(Pavg1, Pavg2, ... , PavgN),  
Sum\_t2(Pavg1, Pavg2, ... , PavgN),  
...  
Sum\_tn(Pavg1, Pavg2, ... , PavgN))

先对各个时间段内，各个node的平均功率值求和；再求出各个时间段功率平均值中的最小值。

 

*[]()&lt;!-- doxytag: member="MAX\_INLET\_TEMP" ref="ggabfbb64a2ec7afa6cbb18aa171775c9ec" args="" --&gt;MAX\_INLET\_TEMP* 

The maximum temperature for any single node within the specified entity:  
Max(Tmax1, Tmax2, "..." , TmaxN)  
.

先分别对N个node取得各自最大温度，再求出N个值中的最大值。

 

*[]()&lt;!-- doxytag: member="AVG\_INLET\_TEMP" ref="ggabfbb64a2ec7afa6cbb18aa171775c9ec" args="" --&gt;AVG\_INLET\_TEMP* 

The average temperature for any single node within the specified entity:  
Avg(Tavg1, Tavg2, "..." , TavgN)  
.

先分别对N个node取得各自平均温度，再求出N个值中的平均值。

 

*[]()&lt;!-- doxytag: member="MIN\_INLET\_TEMP" ref="ggabfbb64a2ec7afa6cbb18aa171775c9ec" args="" --&gt;MIN\_INLET\_TEMP* 

The minimum temperature for any single node within the specified entity:  
Min(Tmin1, Tmin2, "..." , TminN)

先分别对N个node取得各自最小温度，再求出N个值中的最小值。