jp.digitalmuseum.mr.entity
クラス RobotAbstractImpl

java.lang.Object
  上位を拡張 jp.digitalmuseum.mr.entity.EntityImpl
      上位を拡張 jp.digitalmuseum.mr.entity.RobotAbstractImpl
すべての実装されたインタフェース:
java.io.Serializable, Entity, Robot, EventProvider
直系の既知のサブクラス:
HakoniwaRobot, PhysicalRobotAbstractImpl, ProxyRobotAbstractImpl

public abstract class RobotAbstractImpl
extends EntityImpl
implements Robot
Abstract implementation of Robot.
Robot classes must extend this abstract class.
作成者:
Jun KATO
関連項目:
直列化された形式

コンストラクタの概要
RobotAbstractImpl()
           
RobotAbstractImpl(java.lang.String name)
           
 
メソッドの概要
 void freeResource(Resource resource, java.lang.Object object)
           
 void freeResources(java.util.Collection<Resource> resources, java.lang.Object object)
           
 Task getAssignedTask(java.lang.Class<? extends Resource> resourceType)
           
 java.util.Set<Task> getAssignedTasks(java.lang.Class<? extends Resource> resourceType)
           
 java.util.List<java.lang.Class<? extends Resource>> getAvailableExclusiveResourceTypes()
           
 javax.swing.JComponent getConfigurationComponent()
           
 javax.swing.JComponent getResourceComponent(java.lang.Class<? extends Resource> resourceType)
           
 java.util.List<javax.swing.JComponent> getResourceComponents()
           
 java.util.List<javax.swing.JComponent> getResourceComponents(java.util.Collection<java.lang.Class<? extends Resource>> resourceTypes)
           
protected  java.util.List<ResourceAbstractImpl> getResources()
          This method must be implemented by child classes.
Caution: Do not call this method outside this class.
 java.util.List<java.lang.Class<? extends Resource>> getResourceTypes()
           
 java.lang.String getTypeName()
          Get a name of the type of this robot.
protected  void initialize()
           
<T extends Resource>
T
requestResource(java.lang.Class<T> resourceType, java.lang.Object object)
          Request resource with specified interface.
 ResourceMap requestResources(java.util.Collection<java.lang.Class<? extends Resource>> resourceTypes, java.lang.Object object)
          Request resources with specified interfaces.
protected  void setTypeName(java.lang.String typeName)
          Set a name of the type of this robot.
Caution: This method should only be called by a subclass of RobotAbstractImpl.
 
クラス jp.digitalmuseum.mr.entity.EntityImpl から継承されたメソッド
addEventListener, dispose, distributeEvent, getName, getShape, isDisposed, removeEventListener, setName, toString
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
インタフェース jp.digitalmuseum.mr.entity.Entity から継承されたメソッド
dispose, getName, getShape, isDisposed, setName
 
インタフェース jp.digitalmuseum.mr.message.EventProvider から継承されたメソッド
addEventListener, removeEventListener
 
コンストラクタの詳細

RobotAbstractImpl

public RobotAbstractImpl()

RobotAbstractImpl

public RobotAbstractImpl(java.lang.String name)
メソッドの詳細

initialize

protected void initialize()
オーバーライド:
クラス EntityImpl 内の initialize

setTypeName

protected final void setTypeName(java.lang.String typeName)
Set a name of the type of this robot.
Caution: This method should only be called by a subclass of RobotAbstractImpl.
パラメータ:
typeName -

getTypeName

public final java.lang.String getTypeName()
インタフェース Robot の記述:
Get a name of the type of this robot.
定義:
インタフェース Entity 内の getTypeName
定義:
インタフェース Robot 内の getTypeName
オーバーライド:
クラス EntityImpl 内の getTypeName

getResources

protected java.util.List<ResourceAbstractImpl> getResources()
This method must be implemented by child classes.
Caution: Do not call this method outside this class.
戻り値:
Returns a set of all resources.

getResourceTypes

public final java.util.List<java.lang.Class<? extends Resource>> getResourceTypes()
定義:
インタフェース Robot 内の getResourceTypes
戻り値:
Returns a set of resource interfaces.

getAvailableExclusiveResourceTypes

public final java.util.List<java.lang.Class<? extends Resource>> getAvailableExclusiveResourceTypes()
定義:
インタフェース Robot 内の getAvailableExclusiveResourceTypes
戻り値:
Returns a set of available resource interfaces.

getAssignedTask

public final Task getAssignedTask(java.lang.Class<? extends Resource> resourceType)
定義:
インタフェース Robot 内の getAssignedTask
戻り値:
Returns assigned task of a resource.

getAssignedTasks

public final java.util.Set<Task> getAssignedTasks(java.lang.Class<? extends Resource> resourceType)
定義:
インタフェース Robot 内の getAssignedTasks
戻り値:
Returns assigned task of a resource.

requestResources

public ResourceMap requestResources(java.util.Collection<java.lang.Class<? extends Resource>> resourceTypes,
                                    java.lang.Object object)
インタフェース Robot の記述:
Request resources with specified interfaces.
定義:
インタフェース Robot 内の requestResources
戻り値:
Returns the resource if succeeded. Otherwise, returns null.

requestResource

public <T extends Resource> T requestResource(java.lang.Class<T> resourceType,
                                              java.lang.Object object)
インタフェース Robot の記述:
Request resource with specified interface.
定義:
インタフェース Robot 内の requestResource
戻り値:
Returns the resource if succeeded. Otherwise, returns null.

freeResources

public void freeResources(java.util.Collection<Resource> resources,
                          java.lang.Object object)
定義:
インタフェース Robot 内の freeResources

freeResource

public void freeResource(Resource resource,
                         java.lang.Object object)
定義:
インタフェース Robot 内の freeResource

getConfigurationComponent

public javax.swing.JComponent getConfigurationComponent()
定義:
インタフェース Entity 内の getConfigurationComponent
オーバーライド:
クラス EntityImpl 内の getConfigurationComponent

getResourceComponent

public javax.swing.JComponent getResourceComponent(java.lang.Class<? extends Resource> resourceType)
定義:
インタフェース Robot 内の getResourceComponent

getResourceComponents

public java.util.List<javax.swing.JComponent> getResourceComponents()
定義:
インタフェース Robot 内の getResourceComponents

getResourceComponents

public java.util.List<javax.swing.JComponent> getResourceComponents(java.util.Collection<java.lang.Class<? extends Resource>> resourceTypes)
定義:
インタフェース Robot 内の getResourceComponents


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