Removing package directories.
[PyCIM.git] / CIM14 / IEC61968 / Assets / AcceptanceTest.py
blob58b98901c1c33e202441e1f2beb116991c0a59ab
1 # Copyright (C) 2010 Richard Lincoln
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # Lesser General Public License for more details.
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA, USA
17 from CIM14.Element import Element
19 class AcceptanceTest(Element):
20 """Acceptance test for assets.
21 """
23 def __init__(self, success=False, type='', dateTime='', *args, **kw_args):
24 """Initialises a new 'AcceptanceTest' instance.
26 @param success: True if asset has passed acceptance test and may be placed in or is in service. It is set to false if asset is removed from service and is required to be tested again before being placed back in service, possibly in a new location. Since asset may go through multiple tests during its life cycle, the date of each acceptance test may be recorded in Asset.ActivityRecord.status.dateTime.
27 @param type: Type of test or group of tests that was conducted on 'dateTime'.
28 @param dateTime: Date and time the asset was last tested using the 'type' of test and yielding the current status in 'success' attribute.
29 """
30 #: True if asset has passed acceptance test and may be placed in or is in service. It is set to false if asset is removed from service and is required to be tested again before being placed back in service, possibly in a new location. Since asset may go through multiple tests during its life cycle, the date of each acceptance test may be recorded in Asset.ActivityRecord.status.dateTime.
31 self.success = success
33 #: Type of test or group of tests that was conducted on 'dateTime'.
34 self.type = type
36 #: Date and time the asset was last tested using the 'type' of test and yielding the current status in 'success' attribute.
37 self.dateTime = dateTime
39 super(AcceptanceTest, self).__init__(*args, **kw_args)
41 _attrs = ["success", "type", "dateTime"]
42 _attr_types = {"success": bool, "type": str, "dateTime": str}
43 _defaults = {"success": False, "type": '', "dateTime": ''}
44 _enums = {}
45 _refs = []
46 _many_refs = []