lib/Ekahau/Response/DeviceProperties.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
device_id
2.0
BEGIN
1.0
CRAP 1.5
« lib/Ekahau/Response/AreaEstimate.pm ↑ Summary lib/Ekahau/Response/LocationContext.pm »
1 package Ekahau::Response::DeviceProperties;
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::DeviceProperties - Properties of a device tracked by Ekahau
15  
16 =head1 SYNOPSIS
17  
18 Contains the properties of a device visible to Ekahau.
19  
20 =head1 DESCRIPTION
21  
22 =head2 Constructor
23  
24 Generally you will not want to construct these objects yourself; they
25 are created by L<Ekahau::Response|Ekahau::Response>, and use its constructor.
26  
27 =head2 Methods
28  
29 =cut
30  
31 # Internal method
32 sub init
33 3 ▶{
Subroutine init: called CC=2 SCAR=7.6
Pod undocumented
34 warn "Created Ekahau::Response::DeviceProperties object\n"
35 3 ▶ if ($ENV{VERBOSE});
Branch: 1 branch
BranchTrueFalseTotal
if $ENV{"VERBOSE"} 0 3 3
36 }
37  
38 =head3 get_props ( @prop_names )
39  
40 Inherited from L<Ekahau::Response::get_props|Ekahau::Response/get_props>. Returns a hash
41 containing the values for the list of L<Properties|/Properties> in
42 C<@prop_names>. If C<@prop_names> is empty, all properties will be
43 returned.
44  
45 =cut
46  
47 =head3 get_prop ( $prop_name )
48  
49 Inherited from L<Ekahau::Response::get_prop|Ekahau::Response/get_prop>. Returns the value for
50 one of this object's L<Properties|/Properties>, specified by C<$prop_name>. If
51 no property named C<$prop_name> exists, C<undef> is returned.
52  
53 =cut
54  
55 =head3 device_id ( )
56  
57 Returns the identifier for this device, which can be used to start or
58 stop tracking.
59  
60 =cut
61  
62 sub device_id
63 0 ▶{
Subroutine device_id: not called CC=1 SCAR=6.9
Pod documented
64 0 my $self = shift;
65
66 0 return $self->{args}[0];
67 }
68  
69 =head3 type ( )
70  
71 Returns the string I<DeviceProperties>, to identify the type of this object.
72  
73 =cut
74  
75 sub type
76 3 ▶{
Subroutine type: called CC=1 SCAR=0.0
Pod documented
77 3 'DeviceProperties';
78 }
79  
80  
81 =head2 Properties
82  
83 Properties can be retreived with L<get_prop|/get_prop> or L<get_props|/get_props>. The
84 list of properties below may not be complete, and not all properties
85 will be available for all objects. Property names are case-sensitive.
86  
87 =head3 ECLIENT.WLAN_MODEL
88  
89 The model of wireless card contained in the device.
90  
91 =head3 ECLIENT.COMMON_INTERNALNAME
92  
93 The name of the Ekahau driver used on the device.
94  
95 =head3 NETWORK.MAC
96  
97 The MAC address of the device.
98  
99 =head3 NETWORK.DNS_NAME
100  
101 The network name of the device.
102  
103 =head3 NETWORK.IP-ADDRESS
104  
105 The IP address of the device.
106  
107  
108 =head1 AUTHOR
109  
110 Scott Gifford E<lt>gifford@umich.eduE<gt>, E<lt>sgifford@suspectclass.comE<gt>
111  
112 Copyright (C) 2005 The Regents of the University of Michigan.
113  
114 See the file LICENSE included with the distribution for license
115 information.
116  
117  
118 =head1 SEE ALSO
119  
120 L<Ekahau::Response|Ekahau::Response>, L<Ekahau::DeviceList|Ekahau::DeviceList>, L<Ekahau::Base|Ekahau::Base>.
121  
122 =cut
123  
124 15 1;
« lib/Ekahau/Response/AreaEstimate.pm ↑ Summary lib/Ekahau/Response/LocationContext.pm »