Académique Documents
Professionnel Documents
Culture Documents
It is very important that new VEE rules be written as efficiently as possible as the impact of inefficient
logic is magnified due to the volumes of IMDs. For example, consider an implementation with
5,000,000 devices where each device has 2 channels that measure consumption in 15 minute
intervals and each device sends an IMD 3 times each day. A VEE rule applied to such a rule will be
applied to ~ 30 million IMDs with ~ 3 billion measurements each day.
Use the base-package services to do the "heavy lifting" when possible as they are efficient
The upcoming section will explain several of these services
However, even these services can be slow if supplied with "wide" date ranges
If a rule is used exclusively by low volume IMDs (e.g., an industrial-only rule), it can be written in
Java or scripting / xpath2 (the script overhead won't be significant)
If a rule is used by the mass market, it must be written in Java (every millisecond matters)
Avoid retrieving large numbers of individual final measurements
It is much better to invoke base-package services that use the database to calculate sums / averages
/ maximums from final measurements
If you develop a rule using scripting / xpath, it is far better to move group nodes rather than move
individual measurements
7 (part II) - 2
Interval
7 (part II) - 4
IV1
Interval
Value
Channel 1
(kwh)
IV2
Interval
Value
Channel 2
(kwh)
IV1 + IV2
Final Value
10:00 AM
1.2
0.23
1.43
11:00 AM
1.234
1.321
2.555
12:00 PM
2.0121
2.12
4.1321
1:00 PM
1.456
1.12
2.576
2:00 PM
1.2345
0.12
1.3545
3:00 PM
1.0012
2.1212
3.1224
4:00 PM
0.012
2.65
2.662
5:00 PM
0.121
0.121
0.242
Vector Values
Formula
7 (part II) - 5
Interval
IV1
kWh
IV1*V1
Final Value (FV)
10:00 AM
1.2
1.212
11:00 AM
1.234
1.24634
12:00 PM
2.0121
2.03222
1:00 PM
1.456
1.47056
2:00 PM
1.2345
1.24685
3:00 PM
1.0012
1.01121
4:00 PM
0.012
0.01212
5:00 PM
0.121
0.12221
7 (part II) - 6
20
V1
TOT(IV1)
Interval
IV1 kWh
FV (IV1/V1)*SV1
10:00 AM
1.2
2.90177
11:00 AM
1.234
2.98399
12:00 PM
2.0121
4.86555
1:00 PM
1.456
3.52082
2:00 PM
1.2345
2.9852
3:00 PM
1.0012
2.42105
4:00 PM
0.012
0.02902
5:00 PM
0.121
0.2926
7 (part II) - 7
FV
(IV1 + IV2) /
2
IV2
KW
0.23
0.715
1.321
1.2775
2.12
2.06605
1.12
1.288
0.12
0.67725
2.1212
1.5612
2.65
1.331
0.121
0.121
Final
Value
(V1*V2)
2.086711
Interval
IV1
kVARh
IV2
kWh
10:00 AM
1.2
0.23
0.188240
11:00 AM
1.234
1.321
0.730760
12:00 PM
2.0121
2.12
0.725323
1:00 PM
1.456
1.12
0.609710
2:00 PM
1.2345
0.12
0.096749
3:00 PM
1.0012
2.1212
0.904328
4:00 PM
0.012
2.65
0.999989
5:00 PM
0.121
0.121
0.707106
Final
Value
7 (part II) - 8
FV
COS(ATAN(IV1/IV2))
0.999989
Else
7 (part II) - 9
Operand 1: IV1
Operator: >
Operand 2: IV2
IV1
IV2
FV
10:00 AM
1.2
0.23
1.2
11:00 AM
1.234
1.321
1.321
12:00 PM
2.0121
2.12
2.12
1:00 PM
1.456
1.12
1.288
2:00 PM
1.2345
0.12
1.2345
3:00 PM
1.0012
2.1212
2.1212
4:00 PM
0.012
2.65
2.65
5:00 PM
0.121
0.121
0.121
Else
Operand 1: IC1
Operator: between
False Action: 0
The definition that V1 is setFunct=TOT(FV)
Final Formula: V1
Interval
IV1
IC1
FV
10:00 AM
1.2
501000
11:00 AM
1.234
501000
12:00 PM
2.0121
501000
1:00 PM
1.456
301000
1.4560
2:00 PM
1.2345
301000
1.2345
3:00 PM
1.0012
501000
4:00 PM
0.012
501000
5:00 PM
0.121
501000
Final
Value
7 (part II) - 10
2.6905
Operand 1: IC1
Operator: between
True Action: 1
False Action: 0
The definition that V1 is setFunct=TOT(FV)
The definition that V2 is setFunct=CNT(FV)
Final Formula: V1/V2*100
Interval
IV1
IC1
FV
10:00 AM
1.2
501000
11:00 AM
1.234
501000
12:00 PM
2.0121
501000
1:00 PM
1.456
201000
2:00 PM
1.2345
201000
3:00 PM
1.0012
501000
4:00 PM
0.012
501000
5:00 PM
0.121
501000
Final
Value
7 (part II) - 11
25
else
falseAction
operand1 is a formula
7 (part II) - 12
Operator 1: IV1
Operand: >
Operator 2: IV2
Operator 1: IV2
Operand: >
Operator 2: 2.5
True Action: 0
IV1
IV2
FV
10:00 AM
1.2
0.23
1.2
11:00 AM
1.234
1.321
1.321
12:00 PM
2.0121
2.12
2.12
1:00 PM
1.456
1.12
1.288
2:00 PM
1.2345
0.12
1.2345
3:00 PM
1.0012
2.1212
2.1212
4:00 PM
0.012
2.65
5:00 PM
0.121
0.121
0.121
7 (part II) - 14
Vector Values
Vector Formula
or
Simple Formula
1 to many Conditional Formulas
Final Formula
Final Value
Operand 1: IC1
Operator: between
True Action: 1
False Action: 0
The definition that V1 is setFunct=TOT(FV)
The definition that V2 is setFunct=CNT(FV)
Final Formula: V1/V2*100
Interval
IC1
FV
10:00 AM
1.2
501000
11:00 AM
1.234
501000
12:00 PM
2.0121
501000
1:00 PM
1.456
201000
2:00 PM
1.2345
201000
3:00 PM
1.0012
501000
4:00 PM
0.012
501000
5:00 PM
0.121
501000
7 (part II) - 15
IV1
Final
Value
25
7 (part II) - 16
MC Type
Device Config.
Fallback Vee
Group
Fallback
MC
VEE Group
Initial Meas.
Data (IMD)
Business Object
VEE Rule
Exception Type
2
BO / Algorithm
Measurement
Legend
2
System Event
2
Algorithm
Trans. Data
Algorithm Type
Script
Admin Data
Master Data
Script Step
FW Data
MO Boundary
7 (part II) - 17
Business
Service
Described
elsewhere
ST - Status
CH - Characteristics
X - CLOB
7-3 Solution
Business Object - Define Parent BO
1.1
Navigate to Admin / B / Business Object and find D1-GenericVEERule (the BO you will use as the parent).
Click Duplicate to duplicate this BO. When prompted, please prefix your new BO with your initials (in real life, this
would be prefixed with CM).
7 (part II) - 18
7-3 Solution
Business Object - Define BO Schema
1.2
7 (part II) - 19
7-3 Solution
Supply The Wizard's Parameters
2
7 (part II) - 20
7-3 Solution
Script - Set Up The Plug-In Script's Data Areas
3.1
7 (part II) - 21
7-3 Solution
Configuring Apply Formula to Choose Super Intervals
4.1
7 (part II) - 22
Operand 1: IC1
Operator: =
Operand 2: '901000'
IV1
IC1
IV2
FV
10:00 AM
1.2
901000
0.23
1.2
11:00 AM
1.234
501000
1.321
1.321
12:00 PM
2.0121
501000
2.12
2.12
1:00 PM
1.456
301000
1.12
1.12
2:00 PM
1.2345
901000
0.12
1.2345
3:00 PM
1.0012
501000
2.1212
2.1212
4:00 PM
0.012
501000
2.65
2.65
5:00 PM
0.121
901000
0.121
0.121
7-3 Solution
Business Service - Duplicate
4.2
Next, we will configure a new business service using the Apply Formula service to produce an
interval curve according to the formula we just designed
Note: Creating a new business service is one option to create this curve, and supplying inputs
to call the existing Apply Formula business service is a second option
Recall the distinction between a business service and its underlying service; both an
Apply Formula service AND an Apply Formula business service exist
7 (part II) - 23
7-3 Solution
Business Service - Duplicate
4.2
7 (part II) - 24
7-3 Solution
Business Service - Define The Schema
The schema we're starting with
accommodates only one measurement list,
so we need to alter the schema to 1) add a
second measurement list and 2) put an
encapsulating group node around each list
4.3
7 (part II) - 25
7-3 Solution
Business Service - Define The Schema
4.3
7 (part II) - 26
7-3 Solution
Script - Add To The Plug-In Script's Data Areas
3.2
7 (part II) - 27
7-3 Solution
Script - Steps
3.3
7-3 Solution
Script - Steps
3.3
Its a good idea to prevent VEE rules from performing work that's
unnecessary for the majority of the executions of the rule
7-3 Solution
Script - Steps
3.3
Move the output of your business service back into the post VEE list of the local
IMD, and move the entire local IMD into the output of the plug-in spot
At the end of this algorithm, we will have replaced any intervals in the current
IMD with final values having a condition of super, but the IMD's pre-VEE list
retains the initial values that came in with the IMD (remember that we create
final measurements using the post-VEE measurement list from the IMD)
7 (part II) - 30
7-3 Solution
Add Common Interval VEE Group
5
7 (part II) - 31
7-3 Solution
Add Preserve Super Measurements VEE Rule
6
Click the Add Rule link in the VEE Rules List zone
to add a VEE rule to your VEE group, and select
the VEE rule you just added
VEE Rule
Description
Identifying BO
RW-PRSM
RW - Preserve Super
Measurements
RW - Keep Super
Measurements
7-3 Solution
Insert Common Interval VEE Into Other Groups
VEE Rule
Description
Identifying BO
RW-CIV
RW - Execute Common
Interval Validations
Execute VEE
Group
7-3 Solution
Insert Common Interval VEE Into Other Groups
VEE Rule
Description
Identifying BO
RW-CIV-E
RW - Execute Common
Interval Validations
Execute VEE
Group
7 (part II) - 34
7-3 Solution
Add IMD With Super Measurements
8.1
<preVEE>
<stDt>2010-01-01-00.00.00</stDt>
<enDt>2010-01-02-00.00.00</enDt>
<msrs>
<mL>
<s>1</s>
<q>0</q>
<fc>501000</fc>
</mL>
<mL>
<s>8</s>
<q>750</q>
<fc>901000</fc>
</mL>
7 (part II) - 35
<preVEE>
<stDt> 2010-01-01-00.00.00</stDt>
<enDt>2010-01-02-00.00.00</enDt>
<msrs>
<mL>
<s>1</s>
<q>0</q>
<fc>501000</fc>
</mL>
<mL>
<s>2</s>
<q>0</q>
<fc>501000</fc>
</mL>
<mL>
<s>3</s>
<q>0</q>
<fc>501000</fc>
</mL>
<mL>
<s>4</s>
<q>10< /q>
<fc>501000</fc>
</mL>
<mL>
<s>5</s>
<q>0</q>
<fc>501000</fc>
</mL>
<mL>
<s>6</s>
<q>500</q>
<fc>501000</fc>
</mL>
<mL>
<s>7</s>
<q>1000</q>
<fc>501000</fc>
</mL>
<mL>
<s>8</s>
<q>750</q>
<fc>901000</fc>
</mL>
<mL>
<s>9</s>
<q>650</q>
<fc>901000</fc>
</mL>
<mL>
<s>10</s>
<q>100</q>
<fc>901000</fc>
</mL>
<mL>
<s>11</s>
<q>300</q>
<fc>901000</fc>
</mL>
<mL>
<s>12</s>
<q>50< /q>
<fc>501000</fc>
</mL>
<mL>
<s>13</s>
<q>100</q>
<fc>501000</fc>
</mL>
<mL>
<s>14</s>
<q>50< /q>
<fc>501000</fc>
</mL>
<mL>
<s>15</s>
<q>75< /q>
<fc>501000</fc>
</mL>
<mL>
<s>16</s>
<q>90< /q>
<fc>501000</fc>
</mL>
<mL>
<s>17</s>
<q>250</q>
<fc>501000</fc>
</mL>
<mL>
<s>18</s>
<q>100</q>
<fc>501000</fc>
</mL>
<mL>
<s>19</s>
<q>125</q>
<fc>501000</fc>
</mL>
<mL>
<s>20</s>
<q>175</q>
<fc>501000</fc>
</mL>
<mL>
<s>21</s>
<q>100</q>
<fc>501000</fc>
</mL>
<mL>
<s>22</s>
<q>0</q>
<fc>501000</fc>
</mL>
<mL>
<s>23</s>
<q>50< /q>
<fc>501000</fc>
</mL>
<mL>
<s>24</s>
<q>0</q>
<fc>501000</fc>
</mL>
</msrs>
</preVEE>
7-3 Solution
Add Replacement IMD
8.2
<preVEE>
<stDt>2010-01-01-00.00.00</stDt>
<enDt>2010-01-02-00.00.00</enDt>
<msrs>
<mL>
<s>1</s>
<q>0</q>
<fc>501000</fc>
</mL>
<mL>
<s>8</s>
<q>500</q>
<fc>501000</fc>
</mL>
<preVEE>
<stDt> 2010-01-01-00.00.00</stDt>
<enDt>2010-01-02-00.00.00</enDt>
<msrs>
<mL>
<s>1</s>
<q>0</q>
<fc>501000</fc>
</mL>
<mL>
<s>2</s>
<q>9</q>
<fc>501000</fc>
</mL>
<mL>
<s>3</s>
<q>0</q>
<fc>501000</fc>
</mL>
<mL>
<s>4</s>
<q>0</q>
<fc>501000</fc>
</mL>
<mL>
<s>5</s>
<q>0</q>
<fc>501000</fc>
</mL>
<mL>
<s>6</s>
<q>0</q>
<fc>501000</fc>
</mL>
<mL>
<s>7</s>
<q>200</q>
<fc>501000</fc>
</mL>
<mL>
<s>8</s>
<q>500</q>
<fc>501000</fc>
</mL>
<mL>
<s>9</s>
<q>400</q>
<fc>501000</fc>
</mL>
<mL>
<s>10</s>
<q>450</q>
<fc>501000</fc>
</mL>
<mL>
<s>11</s>
<q>600</q>
<fc>501000</fc>
</mL>
<mL>
<s>12</s>
<q>520</q>
<fc>501000</fc>
</mL>
<mL>
<s>13</s>
<q>90< /q>
<fc>501000</fc>
</mL>
<mL>
<s>14</s>
<q>50< /q>
<fc>501000</fc>
</mL>
<mL>
<s>15</s>
<q>75< /q>
<fc>501000</fc>
</mL>
<mL>
<s>16</s>
<q>90< /q>
<fc>501000</fc>
</mL>
<mL>
<s>17</s>
<q>250</q>
<fc>501000</fc>
</mL>
<mL>
<s>18</s>
<q>100</q>
<fc>501000</fc>
</mL>
<mL>
<s>19</s>
<q>125</q>
<fc>501000</fc>
</mL>
<mL>
<s>20</s>
<q>175</q>
<fc>501000</fc>
</mL>
<mL>
<s>21</s>
<q>100</q>
<fc>501000</fc>
</mL>
<mL>
<s>22</s>
<q>0</q>
<fc>501000</fc>
</mL>
<mL>
<s>23</s>
<q>50< /q>
<fc>501000</fc>
</mL>
<mL>
<s>24</s>
<q>0</q>
<fc>501000</fc>
</mL>
</msrs>
</preVEE>
7 (part II) - 36
7-3 Solution
Verify Final Measurements
8.3
7 (part II) - 37
Create a pie chart showing the counts of IMDs in each category for
the current measuring component (put this zone on a new portal
and give yourself access to it)
Please break up into teams and design the admin data necessary to add
the new VEE rule and the lifecycle algorithm. Before adding the rules,
please check your configuration using the upcoming slides.
After the admin data is in place, continue following the instructions to
create IMDs for your water MCs
7 (part II) - 38
3
Business Object
Service Provider
Processing
Method
BO Schema
BO Status
Initial Meas.
Data (IMD)
4
BO Status /
Algorithm
Char Type
4
System Event
Algorithm
IMD / Char
Char Value
Field
Legend
Enter State
Trans. Data
Algorithm Type
Script
Admin Data
8
Script Step
Master Data
FW Data
MO Boundary
7 (part II) - 39
Business
Service
Described
elsewhere
ST - Status
CH - Characteristics
X - CLOB
7-4 Solution
Characteristic Type
1
Navigate to Admin / C / + Characteristic Type to add a new char type that defines the
valid values for the percent missing flag. Please prefix your char type with your initials.
7 (part II) - 40
7-4 Solution
Field
2
Navigate to Admin / F / + Field to add a new field that contains the label to be used
whenever the air conditioning element is referenced. Again, prefix it with your initials.
7 (part II) - 41
7-4 Solution
Business Object - Create Child BO
3.1
Navigate to Admin / B / Business Object and add a new child business object of D1-InitialLoadIMDInterval.
Prefix your new BO with your initials (in real life, this would be prefixed with CM).
7 (part II) - 42
7-4 Solution
Business Object - Define BO Schema
3.2
7 (part II) - 43
7-4 Solution
Create A Script, Algorithm, & Algorithm Type
Note that these are the same
steps that would be done
automatically by the Create
BO Algorithm BPA script
7 (part II) - 44
7-4 Solution
Plug In Your Algorithm
4
7 (part II) - 45
7-4 Solution
Update Service Provider's Processing Method
5
7 (part II) - 46
7-4 Solution
Business Service - Duplicate
6.1
Next, we will configure a new business service using the Apply Formula service to produce an
interval curve according to the formula we discussed in earlier slides (so we wont repeat the
analytical process here)
Start by duplicating your existing Apply Formula business service
7 (part II) - 47
7-4 Solution
Business Service - Define The Schema
6.2
7 (part II) - 48
7-4 Solution
Business Service - Define The Schema
6.2
7 (part II) - 49
7-4 Solution
Business Service - Define The Schema
6.2
7 (part II) - 50
7-4 Solution
Business Object - Add A Mini BO
7.1
We know that assigning the IMD Category will require a BO update for each IMD we process
- which has the potential to be expensive in terms of performance (we're also inserting one
additional row per IMD)
Creating a mini BO that contains only the element being updated is a good idea especially
when performance is so critical; it minimizes the XML being read and processed by the
framework during the BO update
7 (part II) - 51
7-4 Solution
Business Object - Define The Mini BO Schema
7.2
7 (part II) - 52
7-4 Solution
Script - Define The Plug-In Script's Data Areas
8.1
7-4 Solution
Script - Define The Plug-In Script's Steps
8.2
7 (part II) - 54
7-4 Solution
Script - Define The Plug-In Script's Steps
8.2
7 (part II) - 55
4
1
Map Zone
Portal
Zone Parameter
Portal / Zone
MC
UI Map
UI Map Schema
6
Initial Meas.
Data (IMD)
Business
Service
Legend
BS Schema
2 Data Explorer
Zone
Trans. Data
Admin Data
Master Data
FW Data
MO Boundary
Described
elsewhere
ST - Status
CH - Characteristics
X - CLOB
7 (part II) - 56
7-4b Solution
UI Map - Missing Interval Statistics
Create a new UI map to display a pie chart showing the
distribution of percent-missing categories among IMDs
7 (part II) - 57
7-4b Solution
Zone - Add Single-SQL Explorer
2.1
Now that we've seen that a repeating list of data is needed to produce a pie chart, we
need some way to produce that data
Explorer zones produce lists of data, and when wrapped with a business service, the
explorer zone output takes the form of the business service schema, which is almost
always a repeating XML list for each column defined
Create a new zone to select the count of IMDs falling
into each "percent missing" category for an input MC
No need for more than one SQL statement
7 (part II) - 58
7-4b Solution
Zone - Configure Parameters
2.2
7 (part II) - 59
7-4b Solution
Business Service - Create and Define Schema
3
7-4b Solution
Zone - Add Explicit Object Map
We can use an explicit object map
zone type, since we never need to
vary the UI map displayed
7 (part II) - 61
7-4b Solution
Portal
5
Add a standalone portal, and
reference the explicit object map
zone you just added
7 (part II) - 62
<s>13</s>
<q>1.8</q>
<fc>501000</fc>
</mL>
<mL>
<s>14</s>
<q>2.2</q>
<fc>501000</fc>
</mL>
<mL>
<s>15</s>
<q>2.5</q>
<fc>501000</fc>
</mL>
<mL>
<s>16</s>
<q>2.3</q>
<fc>501000</fc>
</mL>
<mL>
<s>17</s>
<q>2.8</q>
<fc>501000</fc>
</mL>
<mL>
<s>18</s>
<q>2.9</q>
<fc>501000</fc>
</mL>
<mL>
<s>19</s>
<q>3.2</q>
<fc>501000</fc>
</mL>
<mL>
<s>20</s>
<q>3.1</q>
<fc>501000</fc>
</mL>
<mL>
<s>21</s>
<q>1.9</q>
<fc>501000</fc>
</mL>
<mL>
<s>22</s>
<q>1.8</q>
<fc>501000</fc>
</mL>
<mL>
<s>23</s>
<q>1.7</q>
<fc>501000</fc>
</mL>
<mL>
<s>24</s>
<q>1.6</q>
<fc>501000</fc>
</mL>
</msrs>
</preVEE>
</initialMeasurementData>
<initialMeasurementData>
<serviceProviderExternalId>DPSW</serviceProviderExternalId>
<preVEE>
<mcIdN>W3</mcIdN>
<stDt>2010-01-02-00.00.00</stDt>
<enDt>2010-01-03-00.00.00</enDt>
<msrs>
<mL>
<s>1</s>
<q>1.2</q>
<fc>501000</fc>
</mL>
<mL>
<s>2</s>
<q>1.6</q>
<fc>501000</fc>
</mL>
<mL>
<s>3</s>
<q>1.4</q>
<fc>501000</fc>
</mL>
<mL>
<s>4</s>
<q>1.7</q>
<fc>501000</fc>
</mL>
<mL>
<s>5</s>
<q>1.5</q>
<fc>501000</fc>
</mL>
<mL>
<s>6</s>
<q>1.7</q>
<fc>501000</fc>
</mL>
<mL>
<s>7</s>
<q>2.1</q>
<fc>501000</fc>
</mL>
<mL>
<s>8</s>
<q>2.4</q>
<fc>501000</fc>
</mL>
<mL>
<s>9</s>
<q>2.5</q>
<fc>501000</fc>
</mL>
<mL>
<s>10</s>
<q>2.2</q>
<fc>501000</fc>
</mL>
<mL>
<s>11</s>
<q>1.8</q>
<fc>501000</fc>
</mL>
<mL>
<s>12</s>
<q>2.0</q>
<fc>501000</fc>
</mL>
<mL>
<s>13</s>
<q>1.8</q>
<fc>501000</fc>
</mL>
<mL>
<s>14</s>
<q>2.2</q>
<fc>501000</fc>
</mL>
<mL>
<s>15</s>
<q>2.5</q>
<fc>501000</fc>
</mL>
<mL>
<s>16</s>
<q>2.3</q>
<fc>501000</fc>
</mL>
<mL>
<s>17</s>
<q>2.8</q>
<fc>501000</fc>
</mL>
<mL>
<s>18</s>
<q>2.9</q>
<fc>501000</fc>
</mL>
<mL>
<s>19</s>
<q>3.2</q>
<fc>501000</fc>
</mL>
<mL>
<s>20</s>
<q>3.1</q>
<fc>501000</fc>
</mL>
<mL>
<s>21</s>
<q>1.9</q>
<fc>501000</fc>
</mL>
<mL>
<s>22</s>
<q>1.8</q>
<fc>501000</fc>
</mL>
<mL>
<s>23</s>
<q>1.7</q>
<fc>501000</fc>
</mL>
<mL>
<s>24</s>
<q>1.6</q>
<fc>501000</fc>
</mL>
</msrs>
</preVEE>
</initialMeasurementData>
<initialMeasurementData>
<serviceProviderExternalId>DPSW</serviceProviderExternalId>
<preVEE>
<mcIdN>W3</mcIdN>
<stDt>2010-01-03-00.00.00</stDt>
<enDt>2010-01-04-00.00.00</enDt>
<msrs>
<mL>
<s>1</s>
<q>1.2</q>
<fc>501000</fc>
</mL>
<mL>
<s>2</s>
<q>1.6</q>
<fc>501000</fc>
</mL>
<mL>
<s>3</s>
<q>1.4</q>
<fc>501000</fc>
</mL>
<mL>
<s>4</s>
<q>1.7</q>
<fc>501000</fc>
</mL>
<mL>
<s>5</s>
<q>1.5</q>
<fc>501000</fc>
</mL>
<mL>
<s>6</s>
<q>1.7</q>
<fc>501000</fc>
</mL>
<mL>
<s>7</s>
<q>2.1</q>
<fc>501000</fc>
</mL>
<mL>
<s>8</s>
<q>2.4</q>
<fc>501000</fc>
</mL>
<mL>
<s>9</s>
<q>2.5</q>
<fc>501000</fc>
</mL>
<mL>
<s>10</s>
<q>2.2</q>
<fc>501000</fc>
</mL>
<mL>
<s>11</s>
<q>1.8</q>
<fc>501000</fc>
</mL>
<mL>
<s>12</s>
<q>0</q>
<fc>201000</fc>
</mL>
<mL>
<s>13</s>
<q>1.8</q>
<fc>501000</fc>
</mL>
<mL>
<s>14</s>
<q>2.2</q>
<fc>501000</fc>
</mL>
<mL>
<s>15</s>
<q>2.5</q>
<fc>501000</fc>
</mL>
<mL>
<s>16</s>
<q>2.3</q>
<fc>501000</fc>
</mL>
<mL>
<s>17</s>
<q>2.8</q>
<fc>501000</fc>
</mL>
<mL>
<s>18</s>
<q>2.9</q>
<fc>501000</fc>
</mL>
<mL>
<s>19</s>
<q>3.2</q>
<fc>501000</fc>
</mL>
<mL>
<s>20</s>
<q>3.1</q>
<fc>501000</fc>
</mL>
<mL>
<s>21</s>
<q>1.9</q>
<fc>501000</fc>
</mL>
<mL>
<s>22</s>
<q>1.8</q>
<fc>501000</fc>
</mL>
<mL>
<s>23</s>
<q>1.7</q>
<fc>501000</fc>
</mL>
<mL>
<s>24</s>
<q>1.6</q>
<fc>501000</fc>
</mL>
</msrs>
</preVEE>
</initialMeasurementData>
<initialMeasurementData>
<serviceProviderExternalId>DPSW</serviceProviderExternalId>
<preVEE>
<mcIdN>W3</mcIdN>
<stDt>2010-01-04-00.00.00</stDt>
<enDt>2010-01-05-00.00.00</enDt>
<msrs>
<mL>
<s>1</s>
<q>1.2</q>
<fc>501000</fc>
</mL>
<mL>
<s>2</s>
<q>1.6</q>
<fc>501000</fc>
</mL>
<mL>
<s>3</s>
<q>1.4</q>
<fc>501000</fc>
</mL>
<mL>
<s>4</s>
<q>1.7</q>
<fc>501000</fc>
</mL>
<mL>
<s>5</s>
<q>1.5</q>
<fc>501000</fc>
</mL>
<mL>
<s>6</s>
<q>1.7</q>
<fc>501000</fc>
</mL>
<mL>
<s>7</s>
<q>2.1</q>
<fc>501000</fc>
</mL>
<mL>
<s>8</s>
<q>2.4</q>
<fc>501000</fc>
</mL>
<mL>
<s>9</s>
<q>2.5</q>
<fc>501000</fc>
</mL>
<mL>
<s>10</s>
<q>2.2</q>
<fc>501000</fc>
</mL>
<mL>
<s>11</s>
7-4b Solution
Add Several Days' Worth of IMDs (With Missing Intervals)
Your water device's serial number
6
<devices>
<deviceIdentifierNumber>RW-W-60</deviceIdentifierNumber>
<initialMeasurementData>
<serviceProviderExternalId>RWW</serviceProviderExternalId>
<preVEE>
Your MC's channel ID
<mcIdN>RWA</>
<stDt>2010-01-01-00.00.00</stDt>
<enDt>2010-01-02-00.00.00</enDt>
<msrs>
INSTRUCTOR: give this to the students, it's the XML for
<mL>
the four days' worth of measurements for the interval
<s>1</s>
water MC. Each day has a different percentage of
<q>12.12</q>
<fc>501000</fc>
intervals flagged as missing.
</mL>
<mL>
The students must change it to define their device
<s>8</s>
identifier number, measuring component identifier
<q>24</q>
(channel ID), and service provider external id.
<fc>501000</fc>
</mL>
</msrs>
</preVEE>
</initialMeasurementData>
</devices>
7 (part II) - 63
7-4b Solution
Look At Your Statistics
7 (part II) - 64
Unknown
No air conditioning
Heat pump
Window unit
Central air conditioning built before 2008
Central air conditioning built 2008
A SP's type of air conditioning will reside in the SP's characteristic table
A Factor will be created to hold the weather normalization value for each type of air
conditioning
The next slide provides a summary of the data that should be designed
Please break up into teams and design the admin data necessary to add these
devices
7 (part II) - 65
BO
3
BO Option
BO Schema
VEE Group
10
Service Point
ST, CH, X
Business Object
SP / Char
BO / Algorithm
1
2
4
UI Map
Initial Meas.
Data (IMD)
VEE Rule
11
9
Char Type
Field
System Event
Factor
Char Value
7 (part II) - 66
MC
Factor / Char
Value
7
Factor Value
Algorithm
Algorithm Type
9
Script
Legend
Trans. Data
Admin Data
Master Data
FW Data
MO Boundary
Described
elsewhere
ST - Status
CH - Characteristics
X - CLOB
7-5 Solution
Add a Characteristic Type
1
Navigate to Admin / C / + Characteristic Type to add a new char type that defines the
valid values for the air conditioning flag. Please prefix your char type with your initials.
7 (part II) - 67
7-5 Solution
Add a Field
2
Navigate to Admin / F / + Field to add a new field that contains the label to be used
whenever the air conditioning element is referenced. Again, prefix it with your initials.
7 (part II) - 68
7-5 Solution
Update Your BO Schema
3
7 (part II) - 69
7-5 Solution
Update Your UI Map - Display Map
4.1
Return to the Business Object - Main tab and click on the info string of the Display UI Map
option (this will navigate to the UI Map page with your SP's display UI map).
Navigate to UI Map - Schema tab and define the HTML for the new element
7-5 Solution
Update Your UI Map - Maintenance Map
4.2
Return to the Business Object - Main tab and click on the info string of the Maintenance UI
Map option (this will navigate to the UI Map page with your service point's UI map displayed).
Navigate to UI Map - Schema tab and define the HTML to add the new element
7 (part II) - 71
7-5 Solution
Update Your Service Point
5
Update your SP
7 (part II) - 72
7-5 Solution
Add A Factor
Navigate to Admin / F / + Factor to add a Factor that holds
the weather normalization factors (prefixed with your initials)
Factor
Description
Identifying BO
RW-WN-AC
RW - Weather Normalization
(Air Conditioning)
Factor Number
Your SP has this char value so your factor only needs this for
the purpose of this practice
7 (part II) - 73
7-5 Solution
Add Factor Values For Each Char Value
Click the Add icon to add char values
7 (part II) - 74
Review Questions
7 (part II) - 75