examples.carcontrol
Class LockServiceImpl

java.lang.Object
  extended byde.fhg.igd.semoa.service.AbstractService
      extended byexamples.carcontrol.LockServiceImpl
All Implemented Interfaces:
LockService, Service

public class LockServiceImpl
extends AbstractService
implements LockService

Author:
Daniel Bachmann This simple service is expected by @link LockAgent and provides status and control of the centralised door locking

Field Summary
private  boolean isLocked
          represents the status of the centralised door locking
 
Fields inherited from class de.fhg.igd.semoa.service.AbstractService
REV_POSTFIX, REV_PREFIX
 
Fields inherited from interface examples.carcontrol.LockService
PUBLISH_KEY
 
Constructor Summary
LockServiceImpl()
           
 
Method Summary
 String author()
          Returns the name of the author of the service.
 String info()
          Returns the informative string which should describe the service's essence in a sentence.
 boolean isLocked()
          Requests status of centralised door locking system.
 void lock()
          Locks centralised door locking
 String revision()
          Returns the revision number of this class as a string.
 void unlock()
          Unlocks centralised door locking
 
Methods inherited from class de.fhg.igd.semoa.service.AbstractService
checkDependencies, dependencies, docs, doPrivileged, doPrivileged, getACC, getEnvironment, majorVersion, minorVersion, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

isLocked

private boolean isLocked
represents the status of the centralised door locking

Constructor Detail

LockServiceImpl

public LockServiceImpl()
Method Detail

author

public String author()
Description copied from class: AbstractService
Returns the name of the author of the service. The format to be used should be John Doe <jdoe@zilch.net>.

Specified by:
author in interface Service
Specified by:
author in class AbstractService
Returns:
the String with the author's name.

revision

public String revision()
Description copied from class: AbstractService
Returns the revision number of this class as a string. This class provides default implementations of methods majorVersion(), minorVersion based on the assumption that this method returns a revision string as generated by rcs(1) for the template "$Revision: 1.7 $/$Date: 2007-08-08 04:41:53 +0200 (Wed, 08 Aug 2007) $".

Specified by:
revision in class AbstractService

info

public String info()
Description copied from class: AbstractService
Returns the informative string which should describe the service's essence in a sentence.

Specified by:
info in interface Service
Specified by:
info in class AbstractService
Returns:
the String with the service's short description.

unlock

public void unlock()
Unlocks centralised door locking

Specified by:
unlock in interface LockService

lock

public void lock()
Locks centralised door locking

Specified by:
lock in interface LockService

isLocked

public boolean isLocked()
Requests status of centralised door locking system.

Specified by:
isLocked in interface LockService
Returns:
true if centralised door locking is locked


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.