@@ -48,7 +48,7 @@ def __str__(self):
4848 return "Not able to launch waveform '%s'. %s" % (self .name , self .msg )
4949
5050
51- class WaveformReleaseError (Exception ):
51+ class ApplicationReleaseError (Exception ):
5252 def __init__ (self , name = 'Unknown' , msg = '' ):
5353 self .name = name
5454 self .msg = msg
@@ -107,7 +107,7 @@ def find_app(self, app_id=None):
107107 for app in apps :
108108 if app ._get_identifier () == app_id :
109109 return app
110- raise ResourceNotFound ('waveform ' , app_id )
110+ raise ResourceNotFound ('application ' , app_id )
111111
112112 def find_component (self , app_id , comp_id = None ):
113113 app = self .find_app (app_id )
@@ -181,7 +181,7 @@ def release(self, app_id):
181181 app .releaseObject ()
182182 return app_id
183183 except Exception , e :
184- raise WaveformReleaseError (app_id , str (e ))
184+ raise ApplicationReleaseError (app_id , str (e ))
185185
186186 def available_apps (self ):
187187 _dom = self .get_domain_info ()
@@ -222,23 +222,23 @@ def locate_by_path(path, path_type):
222222 Locates a redhawk object with the given path, and path type.
223223 Returns the object + remaining path:
224224
225- wf , opath = locate(ipath, 'waveform ')
225+ comp , opath = locate(ipath, 'component ')
226226
227227
228228 Valid path types are:
229- 'waveform ' - [ domain id, waveform -id ]
230- 'component' - [ domain id, waveform -id, component-id ]
229+ 'application ' - [ domain id, application -id ]
230+ 'component' - [ domain id, application -id, component-id ]
231231 'device-mgr' - [ domain id, device-manager-id ]
232232 'device' - [ domain id, device-manager-id, device-id ]
233233 '''
234234 domain = Domain (path [0 ])
235- if path_type == 'waveform ' :
235+ if path_type == 'application ' :
236236 return domain .find_app (path [1 ]), path [2 :]
237237 elif path_type == 'component' :
238238 return domain .find_component (path [1 ], path [2 ]), path [3 :]
239239 elif path_type == 'device-mgr' :
240240 return domain .find_device_manager (path [1 ]), path [2 :]
241241 elif path_type == 'device' :
242242 return domain .find_device (path [1 ], path [2 ]), path [3 :]
243- raise ValueError ("Bad path type %s. Must be one of waveform , component, device-mgr or device" % path_type )
243+ raise ValueError ("Bad path type %s. Must be one of application , component, device-mgr or device" % path_type )
244244
0 commit comments