INTRODUCTION
Overview
Download and Install
Quick Start
Documentation
Publications

NONFRAMEWORK CODE
Driver Interfaces
Drivers
Libraries
Utilities

FRAMEWORK CODE
Interfaces
Components
Libraries
Utilities

Full Software Listings

DEVELOPER
Tutorials
Examples
Dev Guide
Dashboard

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         

abstracticegridmanager.h

00001 /*
00002  * Orca-Robotics Project: Components for robotics 
00003  *               http://orca-robotics.sf.net/
00004  * Copyright (c) 2004-2009 Alex Brooks, Alex Makarenko
00005  *
00006  * This copy of Orca is licensed to you under the terms described in
00007  * the LICENSE file included in this distribution.
00008  *
00009  */
00010 
00011 #ifndef ORCAICEGRID_ABSTRACT_ICEGRID_MANAGER_H
00012 #define ORCAICEGRID_ABSTRACT_ICEGRID_MANAGER_H
00013 
00014 #include <IceGrid/Registry.h>
00015 
00016 namespace orcaicegrid
00017 {
00018 
00019 enum IceGridManagerState
00020 {
00021     ManagerConnected,
00022     ManagerDisconnected
00023 };
00024 
00025 class IceGridManagerObserver
00026 {
00027 public:
00028     virtual ~IceGridManagerObserver() {};
00029     virtual void stateChangedEvent( IceGridManagerState newState )=0;
00030 };
00031 
00044 class AbstractIceGridManager
00045 {
00046 public:
00047     virtual ~AbstractIceGridManager() {};
00048 
00050     virtual IceGrid::ApplicationInfo getApplicationInfo( const std::string &appName, int timeoutMs=-1 )=0;
00051 
00053     virtual void addApplication( IceGrid::ApplicationDescriptor descriptor, int timeoutMs=-1 )=0;
00054 
00056     virtual void updateApplication( IceGrid::ApplicationUpdateDescriptor descriptor, int timeoutMs=-1 )=0;
00057 
00059     virtual void patchApplication( const std::string &appName, bool shutdown, int timeoutMs=-1 )=0;
00060 
00062     virtual void removeApplication( const std::string &appName, int timeoutMs=-1 )=0;
00063 
00065     virtual IceGrid::ServerState getServerState( const std::string &serverId, int timeoutMs=-1 )=0;
00066 
00068     virtual void startServer( const std::string &serverId, int timeoutMs=-1 )=0;
00069 
00071     virtual void stopServer( const std::string &serverId, int timeoutMs=-1 )=0;
00072 
00073     virtual void removeObject( const Ice::Identity& id )=0;
00074     virtual Ice::StringSeq getAllAdapterIds()=0;
00075     virtual void removeAdapter( const std::string& adapterId )=0;
00076 
00078     virtual IceGridManagerState state()=0;
00079 
00081     virtual void setObserver( IceGridManagerObserver* observer )=0;
00082 };
00083 
00084 } // namespace
00085 
00086 #endif
 

Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)


Generated for Orca Robotics by  doxygen 1.4.5