lib/Ekahau/Response/LocationContext.pm

filter: Statementstmt 86.6% 13 / 15 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 66.6% 2 / 3 totaltotal 80.7% 21 / 26 CC 2 SCAR 3.9
CC
2
Cov
82%
init
2.1
context_id
2.0
BEGIN
1.0
CRAP 1.5
« lib/Ekahau/Response/DeviceProperties.pm ↑ Summary lib/Ekahau/Response/AreaList.pm »
1 package Ekahau::Response::LocationContext;
2 15 ▶use base 'Ekahau::Response'; our $VERSION=Ekahau::Response::VERSION;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 # Written by Scott Gifford <gifford@umich.edu>
5 # Copyright (C) 2004 The Regents of the University of Michigan.
6 # See the file LICENSE included with the distribution for license
7 # information.
8  
9 15 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 15 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 =head1 NAME
13  
14 Ekahau::Response::LocationContex - Contains an Ekahau I<location context>, with information about a location
15  
16 =head1 SYNOPSIS
17  
18 Ekahau uses I<location contexts> to refer to information about a
19 location returned in an L<Ekahau::Response::AreaList|Ekahau::Response::AreaList> or
20 L<Ekahau::Response::AreaEstimate|Ekahau::Response::AreaEstimate>. When you request information about
21 a specific location context, this is the response you'll get.
22  
23 =head1 DESCRIPTION
24  
25 =head2 Constructor
26  
27 Generally you will not want to construct these objects yourself; they
28 are created by L<Ekahau::Response|Ekahau::Response>, and use its constructor.
29  
30 =head2 Methods
31  
32 =cut
33  
34 # Internal method
35 sub init
36 3 ▶{
Subroutine init: called CC=2 SCAR=7.6
Pod undocumented
37 warn "Created Ekahau::Response::LocationContext object\n"
38 3 ▶ if ($ENV{VERBOSE});
Branch: 1 branch
BranchTrueFalseTotal
if $ENV{"VERBOSE"} 0 3 3
39 }
40  
41 =head3 get_props ( @prop_names )
42  
43 Inherited from L<Ekahau::Response::get_props|Ekahau::Response/get_props>. Returns a hash
44 containing the values for the list of L<Properties|/Properties> in
45 C<@prop_names>. If C<@prop_names> is empty, all properties will be
46 returned.
47  
48 =cut
49  
50 =head3 get_prop ( $prop_name )
51  
52 Inherited from L<Ekahau::Response::get_prop|Ekahau::Response/get_prop>. Returns the value for
53 one of this object's L<Properties|/Properties>, specified by C<$prop_name>. If
54 no property named C<$prop_name> exists, C<undef> is returned.
55  
56 =cut
57  
58  
59 =head3 context_id ( )
60  
61 Returns the identifier for this location context.
62  
63 =cut
64  
65 sub context_id
66 0 ▶{
Subroutine context_id: not called CC=1 SCAR=6.9
Pod documented
67 0 my $self = shift;
68
69 0 return $self->{args}[0];
70 }
71  
72 =head3 type ( )
73  
74 Returns the string I<LocationContext>, to identify the type of this object.
75  
76 =cut
77  
78 3 ▶sub type { 'LocationContext' }
Subroutine type: called CC=1 SCAR=0.0
Pod documented
79  
80 =head2 Properties
81  
82 Properties can be retreived with L<get_prop|/get_prop> or L<get_props|/get_props>. The
83 list of properties below may not be complete, and not all properties
84 will be available for all objects. Property names are case-sensitive.
85  
86 =head3 address
87  
88 A short text string describing this location.
89  
90 =head3 mapScale
91  
92 The scale of the map used for this location, in pixels/meter of
93 pixels/foot (depending on configuration).
94  
95  
96 =head1 AUTHOR
97  
98 Scott Gifford E<lt>gifford@umich.eduE<gt>, E<lt>sgifford@suspectclass.comE<gt>
99  
100 Copyright (C) 2005 The Regents of the University of Michigan.
101  
102 See the file LICENSE included with the distribution for license
103 information.
104  
105  
106 =head1 SEE ALSO
107  
108 L<Ekahau::Response|Ekahau::Response>, L<Ekahau::Base|Ekahau::Base>, L<Ekahau::Response::Area|Ekahau::Response::Area>.
109  
110 =cut
111  
112 15 1;
« lib/Ekahau/Response/DeviceProperties.pm ↑ Summary lib/Ekahau/Response/AreaList.pm »