|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.fhg.igd.semoa.service.AbstractService examples.carcontrol.WindowServiceImpl
This simple service is expected by @link WindowAgent and provides methods to grant control and status of the windows in the car.
Field Summary | |
private byte |
state
The first four bits of the byte represent the windows. |
Fields inherited from class de.fhg.igd.semoa.service.AbstractService |
REV_POSTFIX, REV_PREFIX |
Fields inherited from interface examples.carcontrol.WindowService |
LEFT_BACK, LEFT_FRONT, PUBLISH_KEY, RIGHT_BACK, RIGHT_FRONT |
Constructor Summary | |
WindowServiceImpl()
|
Method Summary | |
String |
author()
Returns the name of the author of the service. |
private void |
clear(int which)
Clears a bit of the status byte. |
void |
down(int which)
Lowers a window and changes current state. |
byte |
getStatus()
Returns current state of all windows. |
String |
info()
Returns the informative string which should describe the service's essence in a sentence. |
boolean |
isLowered(int which)
|
String |
revision()
Returns the revision number of this class as a string. |
private void |
set(int which)
Sets a bit of the status byte. |
void |
setStatus(int newstate)
Sets the states of all windows. |
void |
up(int which)
Raises a window and changes current state. |
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 |
private byte state
Constructor Detail |
public WindowServiceImpl()
Method Detail |
public String author()
AbstractService
author
in interface Service
author
in class AbstractService
public String revision()
AbstractService
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) $".
revision
in class AbstractService
public String info()
AbstractService
info
in interface Service
info
in class AbstractService
public void up(int which)
up
in interface WindowService
which
- number of the window to be opened or closed Use the
constants defined in WindowService
.public void down(int which)
down
in interface WindowService
which
- number of the window to be opened or closed Use the
constants defined in WindowService
.public byte getStatus()
getStatus
in interface WindowService
public void setStatus(int newstate)
setStatus
in interface WindowService
newstate
- the new state status is set to.public boolean isLowered(int which)
isLowered
in interface WindowService
true
if a specific window is loweredprivate void set(int which)
which
- number of the window to be opened or closed Use the
constants defined in WindowService
.private void clear(int which)
which
- number of the window to be opened or closed Use the
constants defined in WindowService
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |