public class VerifyPerceptionCategoryMethods extends Object
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Constructor and Description |
---|
VerifyPerceptionCategoryMethods() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
void |
perceptionCategoryTest()
Check that all sub-classes of AbstractPerceptionCategory have for data named
TestField :
testField* property of any type. |
public final void perceptionCategoryTest()
TestField
:
testField*
property of any type. Data may be organized e.g. per lane, so type is not forced to be
TimeStampedObject
. Data may also be stored as e.g. testFieldLeft
and testFieldRight
, hence the
*
. AbstractPerceptionCategory
fields are checked. If either has the property the
test succeeds. Methods should still be in place as forwards to the wrapped category.updateTestField
methodisTestField
method returning boolean
.isTestFieldTimeStamped
method returning TimeStampedObject
.getTestField
method not returning void
.getTimeStampedTestField
method returning TimeStampedObject
.is*
(boolean).is*TimeStamped
(boolean).get*
(non-boolean).getTimeStamped*
(non-boolean).*
is subtracted as field name, with first character made upper or lower case as by convention.public static void main(String[] args)
args
- argumentsCopyright © 2014–2019 Delft University of Technology. All rights reserved.