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
7ff99f1b
Commit
7ff99f1b
authored
Apr 28, 2015
by
Ulrich Kemloh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleaning logs output
parent
a8f2c93d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
matsim/JPSclient.cpp
matsim/JPSclient.cpp
+1
-1
matsim/JPSserver.cpp
matsim/JPSserver.cpp
+3
-3
pedestrian/AgentsSourcesManager.cpp
pedestrian/AgentsSourcesManager.cpp
+1
-1
No files found.
matsim/JPSclient.cpp
View file @
7ff99f1b
...
...
@@ -50,7 +50,7 @@ void JPSclient::ProcessAgentQueue(Building* building)
{
SendAgentToMatsim
(
ped
);
}
std
::
cout
<<
"deleting from the client:"
<<
std
::
endl
;
//
std::cout<<"deleting from the client:"<<std::endl;
building
->
DeletePedestrian
(
ped
);
}
}
...
...
matsim/JPSserver.cpp
View file @
7ff99f1b
...
...
@@ -50,14 +50,14 @@ Status JPSserver::reqMATSim2ExternPutAgent(ServerContext* context,
string
agent_id
=
request
->
agent
().
id
();
string
leave_node
=
request
->
agent
().
nodes
(
0
);
//just the first node
string
enter_node
=
request
->
agent
().
enternode
();
std
::
cout
<<
"I am taking the agent: "
<<
agent_id
<<
" going to "
<<
leave_node
<<
std
::
endl
;
Log
->
Write
(
"INFO:
\t
RPC::JPSserver I am taking agent %s going to node %s "
,
agent_id
.
c_str
(),
leave_node
.
c_str
())
;
auto
srcs
=
_agentSrcMng
.
GetSources
();
cout
<<
"There are: "
<<
srcs
.
size
()
<<
" options"
<<
endl
;
//
cout<<"There are: "<<srcs.size()<<" options"<<endl;
for
(
auto
&&
src
:
srcs
)
{
cout
<<
"size: "
<<
src
->
GetPoolSize
()
<<
endl
;
//
cout<<"size: "<<src->GetPoolSize()<<endl;
if
(
src
->
GetId
()
==
std
::
stoi
(
enter_node
))
{
std
::
vector
<
Pedestrian
*>
peds
;
...
...
pedestrian/AgentsSourcesManager.cpp
View file @
7ff99f1b
...
...
@@ -76,7 +76,7 @@ bool AgentsSourcesManager::ProcessAllSources()
}
AgentsQueue
::
Add
(
peds
);
empty
=
false
;
cout
<<
"Agents generated: "
<<
peds
.
size
()
<<
endl
;
//
cout << "Agents generated: " << peds.size() << endl;
}
//src->Dump();//exit(0);
}
...
...
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