Resolucion minima (en milisegundos) soportada por el controlador de tiempos.
*/
//static
-const Millisecond timex::Engine::minResolution(100);
+const Millisecond anna::timex::Engine::minResolution(100);
-timex::Engine::Engine(const Millisecond & maxTimeout, const Millisecond & resolution) :
+anna::timex::Engine::Engine(const Millisecond & maxTimeout, const Millisecond & resolution) :
app::Component(getClassName()),
a_currentQuantum(0),
a_maxQuantum(0),
timex::sccs::activate();
}
-timex::Engine::~Engine() {
+anna::timex::Engine::~Engine() {
delete a_tickConsumer;
delete [] a_timeTable;
}
// posteriores ualarm vamos a calcular la diferencia entre el tiempo esperado y el momento
// en que realmente llega la seal de ualarm.
//--------------------------------------------------------------------------------------------
-void timex::Engine::do_initialize()
+void anna::timex::Engine::do_initialize()
throw(RuntimeException) {
LOGMETHOD(TraceMethod tm("timex::Engine", "do_initialize", ANNA_FILE_LOCATION));
}
// Reimplementado de app::Component
-void timex::Engine::do_cloneParent()
+void anna::timex::Engine::do_cloneParent()
throw() {
}
* Se invoca desde app::Application::clone -> app::Component::do_cloneChild (ojo EN EL NUEVO PROCESO).
* Instala la senhal de tick en el proceso, ya que la alarma no se hereda directamente.
*/
-void timex::Engine::do_cloneChild()
+void anna::timex::Engine::do_cloneChild()
throw(RuntimeException) {
}
// No para los hilos de generacion, sino que evita que se escriban los bytes
// en el 'pipe'.
//----------------------------------------------------------------------------
-void timex::Engine::pause()
+void anna::timex::Engine::pause()
throw(RuntimeException) {
Guard guard(this, "timex::Engine (pause)");
}
}
-void timex::Engine::play()
+void anna::timex::Engine::play()
throw(RuntimeException) {
Guard guard(this, "timex::Engine (play)");
}
}
-void timex::Engine::activate(timex::TimeEvent* timeEvent)
+void anna::timex::Engine::activate(timex::TimeEvent* timeEvent)
throw(RuntimeException) {
LOGMETHOD(TraceMethod tm(Logger::Local7, "timex::Engine", "activate", ANNA_FILE_LOCATION));
);
}
-timex::TimeEvent* timex::Engine::getTimeEvent(const timex::TimeEvent::Id eventTimeId)
+anna::timex::TimeEvent* anna::timex::Engine::getTimeEvent(const timex::TimeEvent::Id eventTimeId)
throw() {
LOGMETHOD(TraceMethod tm(Logger::Local7, "timex::Engine", "getTimeEvent", ANNA_FILE_LOCATION));
Directory::iterator iid;
return result;
}
-void timex::Engine::cancel(timex::TimeEvent* timeEvent)
+void anna::timex::Engine::cancel(timex::TimeEvent* timeEvent)
throw(RuntimeException) {
LOGMETHOD(TraceMethod tm(Logger::Local7, "timex::Engine", "cancel", ANNA_FILE_LOCATION));
notifyRelease(timeEvent);
}
-void timex::Engine::do_stop()
+void anna::timex::Engine::do_stop()
throw() {
LOGMETHOD(TraceMethod tm("timex::Engine", "do_stop", ANNA_FILE_LOCATION));
Quantum::iterator ii, maxii;
}
}
-void timex::Engine::kill()
+void anna::timex::Engine::kill()
throw() {
Guard guard(this, "timex::Engine (kill)");
app::functions::component <Communicator> (ANNA_FILE_LOCATION)->detach(a_tickConsumer);
// del proceso, con lo que evita totalmente la posiblidad de perdida.
// (3) Si el temporizador ha sido reactivado no tiene que liberarlo.
//----------------------------------------------------------------------------------
-void timex::Engine::tick()
+void anna::timex::Engine::tick()
throw(RuntimeException) {
LOGMETHOD(TraceMethod tm(Logger::Local7, "timex::Engine", "tick", ANNA_FILE_LOCATION));
/*
eventEndQuantum(counter);
}
-void timex::Engine::notifyRelease(timex::TimeEvent* timeEvent)
+void anna::timex::Engine::notifyRelease(timex::TimeEvent* timeEvent)
throw() {
if(timeEvent->a_observer != NULL)
timeEvent->a_observer->release(timeEvent);
}
-string timex::Engine::asString() const
+string anna::timex::Engine::asString() const
throw() {
string msg("timex::Engine { ");
msg += app::Component::asString();
return msg += " }";
}
-xml::Node* timex::Engine::asXML(xml::Node* parent) const
+xml::Node* anna::timex::Engine::asXML(xml::Node* parent) const
throw() {
parent = Component::asXML(parent);
xml::Node* result = parent->createChild("timex.Engine");