edu.uci.isr.yancees.server.service
Class AbstractService

java.lang.Object
  extended by edu.uci.isr.yancees.server.service.AbstractService
All Implemented Interfaces:
ServiceInterface
Direct Known Subclasses:
GenericService

public abstract class AbstractService
extends java.lang.Object
implements ServiceInterface

Implements the basic functionality of a service


Constructor Summary
AbstractService()
          Constructor
 
Method Summary
 java.lang.String getName()
           
 boolean isActive()
           
 void setName(java.lang.String name)
          Sets the name of the service
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractService

public AbstractService()
Constructor

Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface ServiceInterface
Returns:
the name of the service
See Also:
yancees.service.ServiceInterface#getName()

setName

public void setName(java.lang.String name)
Sets the name of the service

Specified by:
setName in interface ServiceInterface
Parameters:
name - is the name of the service.

isActive

public boolean isActive()
Specified by:
isActive in interface ServiceInterface
Returns:
whether this service is active or not
See Also:
yancees.service.ServiceInterface#isActive()