Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
JPScore
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
JuPedSim
JPScore
Commits
051c7c11
Commit
051c7c11
authored
6 years ago
by
Tobias Schrödter
Browse files
Options
Downloads
Patches
Plain Diff
Added some Documentation
parent
259e41aa
No related branches found
No related tags found
No related merge requests found
Pipeline
#18929
passed
6 years ago
Stage: configure
Stage: compile
Stage: unit_test
Changes
4
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
Simulation.cpp
+2
-1
2 additions, 1 deletion
Simulation.cpp
routing/Router.h
+4
-0
4 additions, 0 deletions
routing/Router.h
routing/RoutingEngine.cpp
+1
-1
1 addition, 1 deletion
routing/RoutingEngine.cpp
routing/RoutingEngine.h
+16
-6
16 additions, 6 deletions
routing/RoutingEngine.h
with
23 additions
and
8 deletions
Simulation.cpp
+
2
−
1
View file @
051c7c11
...
@@ -546,7 +546,8 @@ double Simulation::RunBody(double maxSimTime)
...
@@ -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
();
_routingEngine
->
UpdateRouter
();
}
}
...
...
This diff is collapsed.
Click to expand it.
routing/Router.h
+
4
−
0
View file @
051c7c11
...
@@ -142,6 +142,10 @@ public:
...
@@ -142,6 +142,10 @@ public:
void
SetTrips
(
const
Trips
&
trips
);
void
SetTrips
(
const
Trips
&
trips
);
/**
* Update the router, when geometry changed due to external changes.
* Remark: Depends on router if needed!
*/
virtual
void
Update
();
virtual
void
Update
();
};
};
...
...
This diff is collapsed.
Click to expand it.
routing/RoutingEngine.cpp
+
1
−
1
View file @
051c7c11
...
@@ -131,7 +131,7 @@ bool RoutingEngine::Init(Building* building)
...
@@ -131,7 +131,7 @@ bool RoutingEngine::Init(Building* building)
return
status
;
return
status
;
}
}
bool
RoutingEngine
::
is
NeedUpdate
()
const
bool
RoutingEngine
::
Need
s
Update
()
const
{
{
return
_needUpdate
;
return
_needUpdate
;
}
}
...
...
This diff is collapsed.
Click to expand it.
routing/RoutingEngine.h
+
16
−
6
View file @
051c7c11
...
@@ -107,6 +107,22 @@ public:
...
@@ -107,6 +107,22 @@ public:
*/
*/
bool
Init
(
Building
*
building
);
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:
private:
/// collections of all routers used
/// collections of all routers used
...
@@ -114,12 +130,6 @@ private:
...
@@ -114,12 +130,6 @@ private:
/// collection of all trips/routes
/// collection of all trips/routes
Trips
_tripsCollection
;
Trips
_tripsCollection
;
bool
_needUpdate
=
false
;
bool
_needUpdate
=
false
;
public:
bool
isNeedUpdate
()
const
;
void
setNeedUpdate
(
bool
needUpdate
);
void
UpdateRouter
();
};
};
#endif
/* ROUTINGENGINE_H_ */
#endif
/* ROUTINGENGINE_H_ */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment