Go to the documentation of this file.
33 time = IceUtil::Time::milliSeconds(0);
38 return "LocalTimeServer";
50 timeServerPrx = getProxy<TimeServerInterfacePrx>(GLOBAL_TIMESERVER_NAME);
51 timeTopicPrx = armarx::ManagedIceObject::getTopic<TimeServerListenerPrx>(TIME_TOPIC_NAME);
62 IceUtil::Time tempTime = IceUtil::Time::milliSeconds(timestamp);
73 timeDeduction = tempTime - this->
time;
74 this->time = tempTime;
76 if (timeDeduction.toMicroSeconds() > 0)
79 timeDeduction = IceUtil::Time::microSeconds(0);
86 it->endTime += timeDeduction;
87 if (it->endTime < tempTime)
112 return applicationTimeServer;
156 return t.callback == callback;
TimeServerInterfacePrx timeServerPrx
a handle for the MasterTimeServer
const VariantTypeId Float
void setSpeed(Ice::Float newSpeed, const ::Ice::Current &=Ice::emptyCurrent) override
void reportTime(::Ice::Long, const ::Ice::Current &=Ice::emptyCurrent) override
static void setApplicationTimeServerName(const std::string &name)
IceUtil::Time time
the current time
void onDisconnectComponent() override
Hook for subclass.
Ice::Long getTime(const ::Ice::Current &=Ice::emptyCurrent) override
void unregisterTimer(CallbackReceiver *callback)
unregister a timer
TimeServerListenerPrx timeTopicPrx
a handle for the topic "Time"
LocalTimeServer()
Please use LocalTimeServer::getApplicationtimeserver() to access your local timeserver.
Used by CallbackWaitLock.
void stop(const ::Ice::Current &=Ice::emptyCurrent) override
void onInitComponent() override
void step(const ::Ice::Current &=Ice::emptyCurrent) override
armarx::core::time::DateTime Time
std::string getDefaultName() const override
void usingTopic(const std::string &name, bool orderedPublishing=false)
Registers a proxy for subscription after initialization.
Ice::Int getStepTimeMS(const ::Ice::Current &=Ice::emptyCurrent) override
Ice::Float getSpeed(const ::Ice::Current &=Ice::emptyCurrent) override
void registerTimer(IceUtil::Time endTime, CallbackReceiver *callback)
register a callack to call at endTime
static LocalTimeServerPtr getApplicationTimeServer()
Get the applications LocalTimeServer instance.
std::vector< RegisteredTimer > scheduledTasks
void onConnectComponent() override
std::shared_mutex timeMutex
bool usingProxy(const std::string &name, const std::string &endpoints="")
Registers a proxy for retrieval after initialization and adds it to the dependency list.
This file offers overloads of toIce() and fromIce() functions for STL container types.
void start(const ::Ice::Current &=Ice::emptyCurrent) override
std::mutex scheduledTasksMutex
used for locking scheduledTasks