Commit 034b33e5 authored by Ulrich Kemloh's avatar Ulrich Kemloh

JuPedSim client and Server

parent ae7744be
/*
* JPSclient.cpp
*
* Created on: Apr 21, 2015
* Author: piccolo
*/
#include "JPSclient.h"
JPSclient::JPSclient()
{
// TODO Auto-generated constructor stub
}
JPSclient::~JPSclient()
{
// TODO Auto-generated destructor stub
}
/*
* JPSclient.h
*
* Created on: Apr 21, 2015
* Author: piccolo
*/
#ifndef MATSIM_JPSCLIENT_H_
#define MATSIM_JPSCLIENT_H_
#include <grpc/grpc.h>
#include <grpc++/server.h>
#include <grpc++/server_builder.h>
#include <grpc++/server_context.h>
#include <grpc++/server_credentials.h>
#include <grpc++/status.h>
#include "MATSimInterface.grpc.pb.h"
using grpc::Server;
using grpc::ServerBuilder;
using grpc::ServerContext;
using grpc::Status;
//using helloworld::HelloRequest;
//using helloworld::HelloReply;
//using helloworld::Greeter;
using namespace hybrid;
class JPSclient
{
public:
JPSclient();
virtual ~JPSclient();
};
#endif /* MATSIM_JPSCLIENT_H_ */
/*
* JPSserver.cpp
*
* Created on: Apr 21, 2015
* Author: piccolo
*/
#include "JPSserver.h"
JPSserver::JPSserver()
{
// TODO Auto-generated constructor stub
}
JPSserver::~JPSserver()
{
// TODO Auto-generated destructor stub
}
Status JPSserver::reqMATSim2ExternHasSpace(ServerContext* context,
const MATSim2ExternHasSpace* request,
MATSim2ExternHasSpaceConfirmed* response)
{
}
Status JPSserver::reqMATSim2ExternPutAgent(ServerContext* context,
const MATSim2ExternPutAgent* request,
MATSim2ExternPutAgentConfirmed* response)
{
}
Status JPSserver::reqExternDoSimStep(ServerContext* context,
const ExternDoSimStep* request, ExternDoSimStepReceived* response)
{
}
Status JPSserver::reqExternOnPrepareSim(ServerContext* context,
const ExternOnPrepareSim* request,
ExternOnPrepareSimConfirmed* response)
{
}
Status JPSserver::reqExternAfterSim(ServerContext* context,
const ExternAfterSim* request, ExternAfterSimConfirmed* response)
{
}
/*
* JPSserver.h
*
* Created on: Apr 21, 2015
* Author: piccolo
*/
#ifndef MATSIM_JPSSERVER_H_
#define MATSIM_JPSSERVER_H_
#include <grpc/grpc.h>
#include <grpc++/server.h>
#include <grpc++/server_builder.h>
#include <grpc++/server_context.h>
#include <grpc++/server_credentials.h>
#include <grpc++/status.h>
#include "MATSimInterface.grpc.pb.h"
using grpc::Server;
using grpc::ServerBuilder;
using grpc::ServerContext;
using grpc::Status;
//using helloworld::HelloRequest;
//using helloworld::HelloReply;
//using helloworld::Greeter;
using namespace hybrid;
class JPSserver final : public ExternInterfaceService::Service
{
public:
JPSserver();
virtual ~JPSserver();
virtual Status reqMATSim2ExternHasSpace(ServerContext* context, const MATSim2ExternHasSpace* request, MATSim2ExternHasSpaceConfirmed* response);
virtual Status reqMATSim2ExternPutAgent(ServerContext* context, const MATSim2ExternPutAgent* request, MATSim2ExternPutAgentConfirmed* response);
virtual Status reqExternDoSimStep(ServerContext* context, const ExternDoSimStep* request, ExternDoSimStepReceived* response);
virtual Status reqExternOnPrepareSim(ServerContext* context, const ExternOnPrepareSim* request, ExternOnPrepareSimConfirmed* response);
virtual Status reqExternAfterSim(ServerContext* context, const ExternAfterSim* request, ExternAfterSimConfirmed* response);
};
#endif /* MATSIM_JPSSERVER_H_ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment