Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
JPScore
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
92
Issues
92
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
JuPedSim
JPScore
Commits
051c7c11
Commit
051c7c11
authored
Mar 30, 2019
by
tobias schroedter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added some Documentation
parent
259e41aa
Pipeline
#18929
passed with stages
in 18 minutes and 33 seconds
Changes
4
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
8 deletions
+23
-8
Simulation.cpp
Simulation.cpp
+2
-1
routing/Router.h
routing/Router.h
+4
-0
routing/RoutingEngine.cpp
routing/RoutingEngine.cpp
+1
-1
routing/RoutingEngine.h
routing/RoutingEngine.h
+16
-6
No files found.
Simulation.cpp
View file @
051c7c11
...
...
@@ -546,7 +546,8 @@ double Simulation::RunBody(double maxSimTime)
}
}
if
(
_routingEngine
->
isNeedUpdate
()){
// here the used routers are update, when needed due to external changes
if
(
_routingEngine
->
NeedsUpdate
()){
_routingEngine
->
UpdateRouter
();
}
...
...
routing/Router.h
View file @
051c7c11
...
...
@@ -142,6 +142,10 @@ public:
void
SetTrips
(
const
Trips
&
trips
);
/**
* Update the router, when geometry changed due to external changes.
* Remark: Depends on router if needed!
*/
virtual
void
Update
();
};
...
...
routing/RoutingEngine.cpp
View file @
051c7c11
...
...
@@ -131,7 +131,7 @@ bool RoutingEngine::Init(Building* building)
return
status
;
}
bool
RoutingEngine
::
isNeed
Update
()
const
bool
RoutingEngine
::
Needs
Update
()
const
{
return
_needUpdate
;
}
...
...
routing/RoutingEngine.h
View file @
051c7c11
...
...
@@ -107,6 +107,22 @@ public:
*/
bool
Init
(
Building
*
building
);
/**
* Returns if routers need to be updated
* @return routers need to be updated
*/
bool
NeedsUpdate
()
const
;
/**
* Set if routers need to be updated
* @param needUpdate
*/
void
setNeedUpdate
(
bool
needUpdate
);
/**
* Updates all used routers
*/
void
UpdateRouter
();
private:
/// collections of all routers used
...
...
@@ -114,12 +130,6 @@ private:
/// collection of all trips/routes
Trips
_tripsCollection
;
bool
_needUpdate
=
false
;
public:
bool
isNeedUpdate
()
const
;
void
setNeedUpdate
(
bool
needUpdate
);
void
UpdateRouter
();
};
#endif
/* ROUTINGENGINE_H_ */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment