Completed
Push — master ( 69aa0a...9f55c3 )
by Michael
07:44
created

dynamicserialize.dstypes.com.raytheon.uf.common.dataaccess.request.GetGeometryDataRequest   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 37
Duplicated Lines 48.65 %

Importance

Changes 0
Metric Value
wmc 5
eloc 15
dl 18
loc 37
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A GetGeometryDataRequest.getRequestedPeriod() 2 2 1
A GetGeometryDataRequest.__init__() 4 4 1
A GetGeometryDataRequest.setRequestedPeriod() 2 2 1
A GetGeometryDataRequest.getRequestedTimes() 2 2 1
A GetGeometryDataRequest.setRequestedTimes() 2 2 1

How to fix   Duplicated Code   

Duplicated Code

Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.

Common duplication problems, and corresponding solutions are:

1
##
2
##
3
4
# File auto-generated against equivalent DynamicSerialize Java class
5
# and then modified post-generation to make it sub class
6
# AbstractDataAccessRequest.
7
#
8
#     SOFTWARE HISTORY
9
#
10
#    Date            Ticket#       Engineer       Description
11
#    ------------    ----------    -----------    --------------------------
12
#    05/28/13         #2023        dgilling       Initial Creation.
13
#
14
#
15
16
17
from dynamicserialize.dstypes.com.raytheon.uf.common.dataaccess.request import AbstractDataAccessRequest
0 ignored issues
show
Coding Style introduced by
This line is too long as per the coding-style (104/100).

This check looks for lines that are too long. You can specify the maximum line length.

Loading history...
18
19 View Code Duplication
class GetGeometryDataRequest(AbstractDataAccessRequest):
0 ignored issues
show
Duplication introduced by
This code seems to be duplicated in your project.
Loading history...
Unused Code introduced by
The variable __class__ seems to be unused.
Loading history...
20
21
    def __init__(self):
22
        super(GetGeometryDataRequest, self).__init__()
23
        self.requestedTimes = None
24
        self.requestedPeriod = None
25
26
    def getRequestedTimes(self):
27
        return self.requestedTimes
28
29
    def setRequestedTimes(self, requestedTimes):
30
        self.requestedTimes = requestedTimes
31
32
    def getRequestedPeriod(self):
33
        return self.requestedPeriod
34
35
    def setRequestedPeriod(self, requestedPeriod):
36
        self.requestedPeriod = requestedPeriod
37
0 ignored issues
show
coding-style introduced by
Trailing newlines
Loading history...
38