![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEInternalTest.h>
Public Member Functions | |
| 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 | |
| const InternalTest::ViewPosition & | getLastMovedPosition () const |
| get last moved position | |
| 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 | |
| GNEInternalTest (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 | |
| bool | isRunning () const |
| check if test is running | |
| void | runNeteditInternalTests (GNEApplicationWindow *applicationWindow) |
| run netedit internal test | |
| void | stopTests () |
| stop tests | |
| void | updateLastMovedPosition (const int x, const int y) |
| update last moved position | |
| ~GNEInternalTest () | |
| destructor | |
functions related with test steps | |
| void | addTestSteps (InternalTestStep *internalTestStep) |
| add test steps | |
| InternalTestStep * | getCurrentStep () const |
| get current step | |
| InternalTestStep * | setNextStep () |
| get current step and set next step | |
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 | |
| InternalTestStep * | myCurrentTestStep = nullptr |
| current test step | |
| InternalTestStep * | myInitialTestStep = nullptr |
| initial test steps | |
| InternalTest::ViewPosition | myLastMovedPosition |
| last moved position | |
| InternalTestStep * | myLastTestStep = nullptr |
| last test steps | |
| std::map< std::string, InternalTest::Movement > | myMovements |
| vector with movements | |
| bool | myRunning = false |
| flag to indicate if test is running | |
| bool | myTestFinished = false |
| flag to check if test was finished | |
| std::map< std::string, InternalTest::ViewPosition > | myViewPositions |
| vector with view positions | |
Private Member Functions | |
| GNEInternalTest ()=delete | |
| Invalidated default constructor. | |
| GNEInternalTest (const GNEInternalTest &)=delete | |
| Invalidated copy constructor. | |
| GNEInternalTest & | operator= (const GNEInternalTest &src)=delete |
| Invalidated assignment operator. | |
Definition at line 35 of file GNEInternalTest.h.
| GNEInternalTest::GNEInternalTest | ( | const std::string & | testFile | ) |
constructor
Definition at line 35 of file GNEInternalTest.cpp.
| GNEInternalTest::~GNEInternalTest | ( | ) |
destructor
Definition at line 40 of file GNEInternalTest.cpp.
|
privatedelete |
Invalidated default constructor.
|
privatedelete |
Invalidated copy constructor.
|
inherited |
add test steps
Definition at line 202 of file InternalTest.cpp.
References InternalTest::myCurrentTestStep, InternalTest::myInitialTestStep, InternalTest::myLastTestStep, and InternalTestStep::setNextStep().
Referenced by InternalTestStep::InternalTestStep(), InternalTestStep::InternalTestStep(), InternalTestStep::InternalTestStep(), and InternalTestStep::InternalTestStep().
|
protectedinherited |
clear lines
Definition at line 471 of file InternalTest.cpp.
Referenced by InternalTest::InternalTest().
|
inherited |
get map with attributesEnum jump steps
Definition at line 252 of file InternalTest.cpp.
References InternalTest::myAttributesEnum.
Referenced by InternalTestStep::changeEditMode(), InternalTestStep::changeElement(), InternalTestStep::changePlan(), InternalTestStep::checkIntArgument(), InternalTestStep::copyTLS(), InternalTestStep::createCrossing(), InternalTestStep::createNewEdgeType(), InternalTestStep::createTLS(), InternalTestStep::crossingClearEdges(), InternalTestStep::crossingInvertEdges(), InternalTestStep::deleteTLS(), InternalTestStep::disJoinTLS(), InternalTestStep::getIntArgument(), InternalTestStep::InternalTestStep(), InternalTestStep::joinTSL(), InternalTestStep::lockSelection(), InternalTestStep::modifyCrossingDefaultBoolValue(), InternalTestStep::modifyCrossingDefaultValue(), InternalTestStep::modifyVTypeDialogAttribute(), InternalTestStep::protectElements(), InternalTestStep::resetAllTLSPhases(), InternalTestStep::resetSingleTLSPhases(), InternalTestStep::saveConnectionEdit(), InternalTestStep::selectEdgeType(), InternalTestStep::selection(), and InternalTestStep::selectNetworkItems().
|
inherited |
get map with contextual menu operation jump steps
Definition at line 258 of file InternalTest.cpp.
References InternalTest::myContextualMenuOperations.
Referenced by InternalTestStep::contextualMenuOperation().
|
inherited |
get current step
Definition at line 217 of file InternalTest.cpp.
References InternalTest::myCurrentTestStep.
Referenced by runNeteditInternalTests().
|
inherited |
get last moved position
Definition at line 276 of file InternalTest.cpp.
References InternalTest::myLastMovedPosition.
Referenced by InternalTestStep::buildMouseClickEvent(), and InternalTestStep::buildMouseMoveEvent().
|
inherited |
get map with movement pairs
Definition at line 270 of file InternalTest.cpp.
References InternalTest::myMovements.
Referenced by InternalTestStep::moveElement(), InternalTestStep::moveElementHorizontal(), and InternalTestStep::moveElementVertical().
|
inherited |
get currentTime
Definition at line 243 of file InternalTest.cpp.
Referenced by InternalTestStep::buildKeyPressEvent(), InternalTestStep::buildKeyReleaseEvent(), InternalTestStep::buildMouseClickEvent(), and InternalTestStep::buildMouseMoveEvent().
|
inherited |
get map with view position pairs
Definition at line 264 of file InternalTest.cpp.
References InternalTest::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().
|
inherited |
interpolate view positions
Definition at line 288 of file InternalTest.cpp.
References InternalTest::ViewPosition::getX(), InternalTest::ViewPosition::getY(), and numPointsInterpolation.
Referenced by InternalTestStep::buildMouseDragDrop().
|
inherited |
check if test is running
Definition at line 231 of file InternalTest.cpp.
References InternalTest::myRunning.
Referenced by GNEDeleteFrame::SubordinatedElements::checkElements(), and GNEApplicationWindow::onCmdRunTests().
|
privatedelete |
Invalidated assignment operator.
|
protectedinherited |
parse attributesEnum file
Definition at line 312 of file InternalTest.cpp.
References StringUtils::isInt(), TL, StringUtils::toInt(), and WRITE_ERRORF.
Referenced by InternalTest::InternalTest().
|
protectedinherited |
parse attributesEnum file
Definition at line 343 of file InternalTest.cpp.
References StringUtils::isInt(), TL, and WRITE_ERRORF.
Referenced by InternalTest::InternalTest().
|
protectedinherited |
parse movements file
Definition at line 428 of file InternalTest.cpp.
References StringUtils::isInt(), TL, and WRITE_ERRORF.
Referenced by InternalTest::InternalTest().
|
protectedinherited |
parse viewPositions file
Definition at line 393 of file InternalTest.cpp.
References StringUtils::isInt(), TL, and WRITE_ERRORF.
Referenced by InternalTest::InternalTest().
| void GNEInternalTest::runNeteditInternalTests | ( | GNEApplicationWindow * | applicationWindow | ) |
run netedit internal test
Definition at line 44 of file GNEInternalTest.cpp.
References InternalTestStep::APP, InternalTestStep::FINISH, InternalTest::getCurrentStep(), GNEApplicationWindow::getViewNet(), GNEViewNet::getViewParent(), InternalTest::myRunning, InternalTest::myTestFinished, InternalTest::setNextStep(), InternalTestStep::TLS_PHASES, InternalTestStep::TLS_PHASETABLE, and InternalTestStep::VIEW.
Referenced by GNEApplicationWindow::onCmdRunTests().
|
inherited |
get current step and set next step
Definition at line 223 of file InternalTest.cpp.
References InternalTestStep::getNextStep(), and InternalTest::myCurrentTestStep.
Referenced by GNEDialog::openDialog(), and runNeteditInternalTests().
|
protectedinherited |
check if the given string start with
Definition at line 485 of file InternalTest.cpp.
Referenced by InternalTest::InternalTest().
|
inherited |
stop tests
Definition at line 237 of file InternalTest.cpp.
References InternalTest::myRunning.
Referenced by GNEApplicationWindow::loadNetwork(), GNEApplicationWindow::onCmdOpenNeteditConfig(), GNEApplicationWindow::onCmdOpenSumoConfig(), GNEApplicationWindow::onCmdReloadNeteditConfig(), GNEApplicationWindow::onCmdReloadNetwork(), GNEApplicationWindow::onCmdReloadSumoConfig(), and GNEApplicationWindow::onCmdSmartReload().
|
inherited |
update last moved position
Definition at line 282 of file InternalTest.cpp.
References InternalTest::myLastMovedPosition.
Referenced by InternalTestStep::buildMouseMoveEvent(), and InternalTestStep::setupAndStart().
|
protectedinherited |
vector with attributesEnum jump steps
Definition at line 208 of file InternalTest.h.
Referenced by InternalTest::getAttributesEnum(), and InternalTest::InternalTest().
|
protectedinherited |
vector with contextual menu operation jump steps
Definition at line 211 of file InternalTest.h.
Referenced by InternalTest::getContextualMenuOperations(), and InternalTest::InternalTest().
|
protectedinherited |
current test step
Definition at line 199 of file InternalTest.h.
Referenced by InternalTest::addTestSteps(), InternalTest::getCurrentStep(), and InternalTest::setNextStep().
|
protectedinherited |
initial test steps
Definition at line 193 of file InternalTest.h.
Referenced by InternalTest::addTestSteps(), and InternalTest::~InternalTest().
|
protectedinherited |
last moved position
Definition at line 220 of file InternalTest.h.
Referenced by InternalTest::getLastMovedPosition(), and InternalTest::updateLastMovedPosition().
|
protectedinherited |
last test steps
Definition at line 196 of file InternalTest.h.
Referenced by InternalTest::addTestSteps().
|
protectedinherited |
vector with movements
Definition at line 217 of file InternalTest.h.
Referenced by InternalTest::getMovements(), and InternalTest::InternalTest().
|
protectedinherited |
flag to indicate if test is running
Definition at line 202 of file InternalTest.h.
Referenced by InternalTest::isRunning(), runNeteditInternalTests(), and InternalTest::stopTests().
|
protectedinherited |
flag to check if test was finished
Definition at line 205 of file InternalTest.h.
Referenced by runNeteditInternalTests().
|
protectedinherited |
vector with view positions
Definition at line 214 of file InternalTest.h.
Referenced by InternalTest::getViewPositions(), and InternalTest::InternalTest().