jp.ac.naka.ec
クラス EntityCollaborator

java.lang.Object
  上位を拡張 jp.ac.naka.ec.TreeNodeImpl
      上位を拡張 jp.ac.naka.ec.entity.EntityImpl
          上位を拡張 jp.ac.naka.ec.EntityCollaborator
すべての実装されたインタフェース:
java.util.EventListener, Entity, EntityListener, TreeNode

public class EntityCollaborator
extends EntityImpl

EntityContainerのラッパークラス。

作成者:
Takashi Kasuya

フィールドの概要
static java.lang.String base
           
static java.lang.String log4j_properties
           
static java.lang.String sip_properties
           
 
クラス jp.ac.naka.ec.entity.EntityImpl から継承されたフィールド
alive
 
メソッドの概要
 void addEntity(Entity e)
          EntityContainerが保持するEntityの追加
 boolean addPlugin(Plugin plugin)
           
 java.util.Set<Entity> getEntities()
           
static EntityCollaborator getInstance()
           
static EntityCollaborator getInstance(Configuration config)
           
static EntityCollaborator getInstance(int port)
          ポートの指定
 java.util.Set<Plugin> getPlugins()
           
 boolean hasParentNode()
          親ノードが設定されているか。
 void setParentNode(EntityContainer node)
          親ノードの設定を行う。
 void setParentURI(java.lang.String uri)
          親ノードの設定を文字列で行う。
 
クラス jp.ac.naka.ec.entity.EntityImpl から継承されたメソッド
addedNewEntity, equals, getContainer, getDescription, getEntityType, getLocation, getPriority, getTupleId, getURI, isAlive, isLocal, receiveAck, receiveAnswer, receiveBye, receiveMessage, receiveOffer, removedEntity, sendBye, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendOffer, sendOffer, setAlive, setEntityType, setLocal, setLocation, setPriority, setTupleId, setURI, toString
 
クラス jp.ac.naka.ec.TreeNodeImpl から継承されたメソッド
addChild, getChildNodes, getFullyQualifiedName, getName, getParent, hasChildNodes, hasParent, include, removeChild, setName, setParent
 
クラス java.lang.Object から継承されたメソッド
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
インタフェース jp.ac.naka.ec.TreeNode から継承されたメソッド
addChild, getChildNodes, getFullyQualifiedName, getName, getParent, hasChildNodes, hasParent, include, removeChild, setName, setParent
 

フィールドの詳細

sip_properties

public static java.lang.String sip_properties

log4j_properties

public static java.lang.String log4j_properties

base

public static java.lang.String base
メソッドの詳細

getInstance

public static EntityCollaborator getInstance()

getInstance

public static EntityCollaborator getInstance(Configuration config)
パラメータ:
config -
戻り値:
ec

getInstance

public static EntityCollaborator getInstance(int port)
ポートの指定

パラメータ:
port -
戻り値:

setParentNode

public void setParentNode(EntityContainer node)
親ノードの設定を行う。

パラメータ:
uri -

setParentURI

public void setParentURI(java.lang.String uri)
親ノードの設定を文字列で行う。

パラメータ:
uri -

hasParentNode

public boolean hasParentNode()
親ノードが設定されているか。

戻り値:
flag

addEntity

public void addEntity(Entity e)
EntityContainerが保持するEntityの追加

パラメータ:
btn -

getEntities

public java.util.Set<Entity> getEntities()
戻り値:
entities 保持しているEntityの数

addPlugin

public boolean addPlugin(Plugin plugin)
パラメータ:
plugin -
戻り値:
a

getPlugins

public java.util.Set<Plugin> getPlugins()