jadex.bridge.ServiceTerminatedException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-platform-bridge Show documentation
Show all versions of jadex-platform-bridge Show documentation
Jadex bridge is a base package for kernels and platforms, i.e., it is used by both and provides commonly used interfaces and classes for active components and their management.
package jadex.bridge;
import jadex.bridge.service.IServiceIdentifier;
/**
* Thrown when operations are invoked after a service has been shut down.
*/
public class ServiceTerminatedException extends RuntimeException
{
//-------- attributes --------
/** The service identifier. */
protected IServiceIdentifier sid;
//-------- constructors --------
/**
* Create a service termination exception.
*/
public ServiceTerminatedException(IServiceIdentifier sid)
{
super(sid.getServiceName());
this.sid = sid;
}
//-------- methods --------
/**
* Get the service identifier.
* @return The service identifier.
*/
public IServiceIdentifier getServiceIdentifier()
{
return sid;
}
}