jp.digitalmuseum.mr.service
インタフェース Service

すべてのスーパーインタフェース:
EventProvider, java.lang.Runnable, java.io.Serializable
既知のサブインタフェースの一覧:
CoordProvider, EntityInformationProvider, HomographyCoordProvider, ImageProvider, LocationBasedTask, LocationProvider, MobileTask, ScreenLocationProvider, Task
既知の実装クラスの一覧:
AvoidCollision, Camera, Capture, DrawPath, EndCleaning, EndPen, FillPath, FillPathLoosely, Follow, FollowVectorField, GoBackward, GoForward, Hakoniwa, HomographyCoordProviderAbstractImpl, LocationBasedTaskAbstractImpl, LocationProviderAbstractImpl, MarkerDetector, MobileCleaningTask, MobilePenTask, MobileTaskAbstractImpl, Move, Push, PutPen, Rotate, ScreenLocationProviderAbstractImpl, ServiceAbstractImpl, ServiceGroup, SpinLeft, SpinRight, StartCleaning, Stop, TaskAbstractImpl, TestService, TracePath, TracePathLoosely, VectorFieldTask

public interface Service
extends java.lang.Runnable, EventProvider, java.io.Serializable

Service interface.

作成者:
Jun KATO

メソッドの概要
 void dispose()
           
 long getAliveTime()
           
 javax.swing.JComponent getConfigurationComponent()
           
 long getInterval()
          Get duration of one cycle in milliseconds.
 java.lang.String getName()
           
 ServiceGroup getServiceGroup()
           
 boolean isDisposed()
           
 boolean isPaused()
           
 boolean isStarted()
           
 void pause()
          Pause this service.
 void resume()
          Resume this service.
 void setInterval(long period)
          Set duration of one cycle in milliseconds.
 void setServiceGroup(ServiceGroup serviceGroup)
          Set the service group to which this service belongs.
 void start()
          Start this service.
 void start(ServiceGroup serviceGroup)
          Start this service on the specified service group.
 void stop()
          Stop this service.
 
インタフェース java.lang.Runnable から継承されたメソッド
run
 
インタフェース jp.digitalmuseum.mr.message.EventProvider から継承されたメソッド
addEventListener, removeEventListener
 

メソッドの詳細

start

void start()
Start this service. *

関連項目:
start(ServiceGroup), pause(), resume(), stop()

start

void start(ServiceGroup serviceGroup)
Start this service on the specified service group. Calling this method is equivalent to calling start() after setServiceGroup(serviceGroup).

パラメータ:
serviceGroup -
関連項目:
start()

dispose

void dispose()

pause

void pause()
Pause this service. When paused, run() won't be called till resume() is called.

関連項目:
resume()

resume

void resume()
Resume this service. Only affective when this service is paused.

関連項目:
pause()

stop

void stop()
Stop this service. When stopped, run() won't be called any more. To restart this service, call start().

関連項目:
start()

isStarted

boolean isStarted()
戻り値:
Returns whether this service is started or not.

isPaused

boolean isPaused()
戻り値:
Returns whether this service is paused or not.

isDisposed

boolean isDisposed()
戻り値:
Returns whether this service is disposed or not.

setInterval

void setInterval(long period)
Set duration of one cycle in milliseconds.

パラメータ:
period - Duration of a period in milliseconds.

getInterval

long getInterval()
Get duration of one cycle in milliseconds.

戻り値:
Returns the duration

setServiceGroup

void setServiceGroup(ServiceGroup serviceGroup)
Set the service group to which this service belongs.


getServiceGroup

ServiceGroup getServiceGroup()
戻り値:
Returns the service group to which this service belongs.

getConfigurationComponent

javax.swing.JComponent getConfigurationComponent()
戻り値:
Returns a Swing component for configuring this service.
関連項目:
JComponent

getName

java.lang.String getName()
戻り値:
Returns the name of this service.

getAliveTime

long getAliveTime()
戻り値:
Returns time elapsed since the service started.


Copyright by Jun KATO (arc@dmz) at http://mr.digitalmuseum.jp/