![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <InternalTest.h>
Data Structures | |
| struct | ContextualMenu |
| contextual menu More... | |
| class | Movement |
| view position More... | |
| class | ViewPosition |
| view position More... | |
Public Member Functions | |
| void | addTestSteps (InternalTestStep *internalTestStep) |
| add test steps | |
| const std::map< std::string, int > & | getAttributesEnum () const |
| get map with attributesEnum jump steps | |
| const std::map< std::string, InternalTest::ContextualMenu > & | getContextualMenuOperations () const |
| get map with contextual menu operation jump steps | |
| InternalTestStep * | getCurrentStep () const |
| get current step | |
| const InternalTest::ViewPosition & | getLastMovedPosition () const |
| get last moved position | |
| InternalTestStep * | getLastTestStep () const |
| get last test step | |
| const std::map< std::string, InternalTest::Movement > & | getMovements () const |
| get map with movement pairs | |
| FXint | getTime () const |
| get currentTime | |
| const std::map< std::string, InternalTest::ViewPosition > & | getViewPositions () const |
| get map with view position pairs | |
| InternalTest (const std::string &testFile) | |
| constructor | |
| std::vector< InternalTest::ViewPosition > | interpolateViewPositions (const InternalTest::ViewPosition &viewStartPosition, const int offsetStartX, const int offsetStartY, const InternalTest::ViewPosition &viewEndPosition, const int offsetEndX, const int offsetEndY) const |
| interpolate view positions | |
| void | updateLastMovedPosition (const int x, const int y) |
| update last moved position | |
| ~InternalTest () | |
| destructor | |
Protected Member Functions | |
| std::vector< std::string > | cleanLines (const std::vector< std::pair< bool, std::string > > &linesRaw) const |
| clear lines | |
| std::map< std::string, int > | parseAttributesEnumFile (const std::string filePath) const |
| parse attributesEnum file | |
| std::map< std::string, InternalTest::ContextualMenu > | parseContextualMenuOperationsFile (const std::string filePath) const |
| parse attributesEnum file | |
| std::map< std::string, InternalTest::Movement > | parseMovementsFile (const std::string filePath) const |
| parse movements file | |
| std::map< std::string, InternalTest::ViewPosition > | parseViewPositionsFile (const std::string filePath) const |
| parse viewPositions file | |
| bool | startWith (const std::string &str, const std::string &prefix) const |
| check if the given string start with | |
Protected Attributes | |
| std::map< std::string, int > | myAttributesEnum |
| vector with attributesEnum jump steps | |
| std::map< std::string, InternalTest::ContextualMenu > | myContextualMenuOperations |
| vector with contextual menu operation jump steps | |
| size_t | myCurrentStep = 0 |
| current step index | |
| InternalTest::ViewPosition | myLastMovedPosition |
| last moved position | |
| std::map< std::string, InternalTest::Movement > | myMovements |
| vector with movements | |
| std::vector< InternalTestStep * > | myTestSteps |
| test steps | |
| std::map< std::string, InternalTest::ViewPosition > | myViewPositions |
| vector with view positions | |
Private Member Functions | |
| InternalTest ()=delete | |
| invalidate default constructor | |
| InternalTest (const InternalTest &)=delete | |
| Invalidated copy constructor. | |
| InternalTest & | operator= (const InternalTest &src)=delete |
| Invalidated assignment operator. | |
Definition at line 39 of file InternalTest.h.
| InternalTest::InternalTest | ( | const std::string & | testFile | ) |
constructor
Definition at line 145 of file InternalTest.cpp.
References cleanLines(), myAttributesEnum, myContextualMenuOperations, myMovements, myViewPositions, parseAttributesEnumFile(), parseContextualMenuOperationsFile(), parseMovementsFile(), parseViewPositionsFile(), and startWith().
| InternalTest::~InternalTest | ( | ) |
|
privatedelete |
invalidate default constructor
|
privatedelete |
Invalidated copy constructor.
| void InternalTest::addTestSteps | ( | InternalTestStep * | internalTestStep | ) |
add test steps
Definition at line 200 of file InternalTest.cpp.
References myTestSteps.
Referenced by InternalTestStep::InternalTestStep(), InternalTestStep::InternalTestStep(), and InternalTestStep::InternalTestStep().
|
protected |
clear lines
Definition at line 445 of file InternalTest.cpp.
Referenced by InternalTest().
| const std::map< std::string, int > & InternalTest::getAttributesEnum | ( | ) | const |
get map with attributesEnum jump steps
Definition at line 226 of file InternalTest.cpp.
References myAttributesEnum.
Referenced by InternalTestStep::changeEditMode(), InternalTestStep::changeElement(), InternalTestStep::changePlan(), InternalTestStep::checkIntArgument(), InternalTestStep::copyTLS(), InternalTestStep::createCrossing(), InternalTestStep::createTLS(), InternalTestStep::crossingClearEdges(), InternalTestStep::crossingInvertEdges(), InternalTestStep::deleteTLS(), InternalTestStep::disJoinTLS(), InternalTestStep::getIntArgument(), InternalTestStep::InternalTestStep(), InternalTestStep::joinTSL(), InternalTestStep::lockSelection(), InternalTestStep::modifyCrossingDefaultBoolValue(), InternalTestStep::modifyCrossingDefaultValue(), InternalTestStep::modifyVClassDialog_Cancel(), InternalTestStep::modifyVClassDialog_DisallowAll(), InternalTestStep::modifyVClassDialog_NoDisallowAll(), InternalTestStep::modifyVClassDialog_Reset(), InternalTestStep::modifyVTypeDialogAttribute(), InternalTestStep::protectElements(), InternalTestStep::resetAllTLSPhases(), InternalTestStep::resetSingleTLSPhases(), InternalTestStep::saveConnectionEdit(), InternalTestStep::selection(), and InternalTestStep::selectNetworkItems().
| const std::map< std::string, InternalTest::ContextualMenu > & InternalTest::getContextualMenuOperations | ( | ) | const |
get map with contextual menu operation jump steps
Definition at line 232 of file InternalTest.cpp.
References myContextualMenuOperations.
Referenced by InternalTestStep::contextualMenuOperation().
| InternalTestStep * InternalTest::getCurrentStep | ( | ) | const |
get current step
Definition at line 206 of file InternalTest.cpp.
References myCurrentStep, and myTestSteps.
Referenced by MFXDialogBox::openModalDialog().
| const InternalTest::ViewPosition & InternalTest::getLastMovedPosition | ( | ) | const |
get last moved position
Definition at line 250 of file InternalTest.cpp.
References myLastMovedPosition.
Referenced by InternalTestStep::buildMouseClickEvent(), and InternalTestStep::buildMouseMoveEvent().
| InternalTestStep * InternalTest::getLastTestStep | ( | ) | const |
get last test step
Definition at line 216 of file InternalTest.cpp.
References myTestSteps.
Referenced by InternalTestStep::modifyColorAttribute(), InternalTestStep::modifyVClassDialog_Cancel(), InternalTestStep::modifyVClassDialog_DisallowAll(), InternalTestStep::modifyVClassDialog_NoDisallowAll(), InternalTestStep::modifyVClassDialog_Reset(), and InternalTestStep::modifyVTypeDialogAttribute().
| const std::map< std::string, InternalTest::Movement > & InternalTest::getMovements | ( | ) | const |
get map with movement pairs
Definition at line 244 of file InternalTest.cpp.
References myMovements.
Referenced by InternalTestStep::moveElement(), InternalTestStep::moveElementHorizontal(), and InternalTestStep::moveElementVertical().
| FXint InternalTest::getTime | ( | ) | const |
get currentTime
Definition at line 191 of file InternalTest.cpp.
Referenced by InternalTestStep::buildKeyPressEvent(), InternalTestStep::buildKeyReleaseEvent(), InternalTestStep::buildMouseClickEvent(), and InternalTestStep::buildMouseMoveEvent().
| const std::map< std::string, InternalTest::ViewPosition > & InternalTest::getViewPositions | ( | ) | const |
get map with view position pairs
Definition at line 238 of file InternalTest.cpp.
References myViewPositions.
Referenced by InternalTestStep::buildRedo(), InternalTestStep::buildUndo(), InternalTestStep::contextualMenuOperation(), InternalTestStep::createConnection(), InternalTestStep::createLineShape(), InternalTestStep::createRectangledShape(), InternalTestStep::createSquaredShape(), InternalTestStep::leftClickOffset(), InternalTestStep::mouseClick(), InternalTestStep::moveElement(), InternalTestStep::moveElementHorizontal(), InternalTestStep::moveElementVertical(), and InternalTestStep::selectionRectangle().
| std::vector< InternalTest::ViewPosition > InternalTest::interpolateViewPositions | ( | const InternalTest::ViewPosition & | viewStartPosition, |
| const int | offsetStartX, | ||
| const int | offsetStartY, | ||
| const InternalTest::ViewPosition & | viewEndPosition, | ||
| const int | offsetEndX, | ||
| const int | offsetEndY | ||
| ) | const |
interpolate view positions
Definition at line 262 of file InternalTest.cpp.
References InternalTest::ViewPosition::getX(), InternalTest::ViewPosition::getY(), and numPointsInterpolation.
Referenced by InternalTestStep::buildMouseDragDrop().
|
privatedelete |
Invalidated assignment operator.
|
protected |
parse attributesEnum file
Definition at line 286 of file InternalTest.cpp.
References StringUtils::isInt(), TL, StringUtils::toInt(), and WRITE_ERRORF.
Referenced by InternalTest().
|
protected |
parse attributesEnum file
Definition at line 317 of file InternalTest.cpp.
References StringUtils::isInt(), TL, and WRITE_ERRORF.
Referenced by InternalTest().
|
protected |
parse movements file
Definition at line 402 of file InternalTest.cpp.
References StringUtils::isInt(), TL, and WRITE_ERRORF.
Referenced by InternalTest().
|
protected |
parse viewPositions file
Definition at line 367 of file InternalTest.cpp.
References StringUtils::isInt(), TL, and WRITE_ERRORF.
Referenced by InternalTest().
|
protected |
check if the given string start with
Definition at line 459 of file InternalTest.cpp.
Referenced by InternalTest().
| void InternalTest::updateLastMovedPosition | ( | const int | x, |
| const int | y | ||
| ) |
update last moved position
Definition at line 256 of file InternalTest.cpp.
References myLastMovedPosition.
Referenced by InternalTestStep::buildMouseMoveEvent(), and InternalTestStep::setupAndStart().
|
protected |
vector with attributesEnum jump steps
Definition at line 188 of file InternalTest.h.
Referenced by getAttributesEnum(), and InternalTest().
|
protected |
vector with contextual menu operation jump steps
Definition at line 191 of file InternalTest.h.
Referenced by getContextualMenuOperations(), and InternalTest().
|
protected |
current step index
Definition at line 185 of file InternalTest.h.
Referenced by getCurrentStep(), and GNEInternalTest::runNeteditInternalTests().
|
protected |
last moved position
Definition at line 200 of file InternalTest.h.
Referenced by getLastMovedPosition(), and updateLastMovedPosition().
|
protected |
vector with movements
Definition at line 197 of file InternalTest.h.
Referenced by getMovements(), and InternalTest().
|
protected |
test steps
Definition at line 182 of file InternalTest.h.
Referenced by addTestSteps(), getCurrentStep(), getLastTestStep(), GNEInternalTest::runNeteditInternalTests(), and ~InternalTest().
|
protected |
vector with view positions
Definition at line 194 of file InternalTest.h.
Referenced by getViewPositions(), and InternalTest().