jp.digitalmuseum.mr
クラス Matereal

java.lang.Object
  上位を拡張 jp.digitalmuseum.mr.Matereal
すべての実装されたインタフェース:
EventListener, EventProvider

public final class Matereal
extends java.lang.Object
implements EventProvider, EventListener

Main class of matereal. Singleton.

作成者:
Jun KATO

入れ子のクラスの概要
 class Matereal.Canceller
           
 
フィールドの概要
static int DEFAULT_NUM_THREADS
           
static java.lang.String LIBRARY_NAME
           
 
メソッドの概要
 void addEventListener(EventListener listener)
          Add an event listener.
 void dispose()
          Stop all services and prepare for shutting down Matereal.
 void disposeDebugFrame()
           
 void eventOccurred(Event e)
           
 javax.swing.JFrame getDebugFrame()
           
 java.awt.Font getDefaultFont()
           
 java.util.Set<Entity> getEntities()
          Get a set of entities.
 java.io.PrintStream getErrorStream()
           
static Matereal getInstance()
          Get the singleton instance of Matereal.
 java.lang.String getName()
           
 java.io.PrintStream getOutStream()
           
 java.util.Set<ServiceGroup> getServiceGroups()
          Get a set of service groups.
 java.util.List<Service> getServices()
          Get a list of services.
 java.util.Set<Workflow> getWorkflows()
          Get a list of workflow graphs.
 void hideDebugFrame()
           
protected  boolean invokeAndWait(java.lang.Runnable runnable)
           
protected  void invokeLater(java.lang.Runnable runnable)
           
 boolean isDisposing()
           
<T extends Entity>
java.util.Set<T>
lookForEntities(java.lang.Class<T> classObject)
          Look for entities with specific class managed by matereal.
<T extends Service>
T
lookForService(java.lang.Class<T> classObject)
          Look for a service with specific class/interface.
<T extends Service>
T
lookForService(java.lang.Class<T> classObject, java.lang.Iterable<Service> serviceIterator)
          Look for a service with specific class/interface in a service group.
<T extends Service>
java.util.Set<T>
lookForServices(java.lang.Class<T> classObject)
          Look for services with specific class/interface.
<T extends Service>
java.util.Set<T>
lookForServices(java.lang.Class<T> classObject, java.lang.Iterable<Service> serviceIterator)
          Look for services with specific class/interface in a service group.
static void main(java.lang.String[] args)
           
 void registerEntity(Entity entity)
          Called by Entity constructor.
 void registerService(Service service)
          Called by Service#initialize().
 void registerWorkflow(Workflow workflow)
          Called by Workflow constructor.
 boolean removeEventListener(EventListener listener)
          Remove an event listener.
 Matereal.Canceller scheduleAtFixedRate(java.lang.Runnable runnable, long interval)
           
 void setErrorStream(java.io.PrintStream err)
           
 void setOutStream(java.io.PrintStream out)
           
 void showDebugFrame()
           
 java.util.concurrent.Future<?> submit(java.lang.Runnable task)
           
 java.lang.String toString()
           
 boolean unregisterEntity(Entity entity)
          Called by Entity.dispose().
 boolean unregisterService(Service service)
          Called by Service.dispose().
 boolean unregisterWorkflow(Workflow workflow)
          Called by Workflow.dispose().
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

LIBRARY_NAME

public static final java.lang.String LIBRARY_NAME
関連項目:
定数フィールド値

DEFAULT_NUM_THREADS

public static int DEFAULT_NUM_THREADS
メソッドの詳細

main

public static void main(java.lang.String[] args)

getInstance

public static Matereal getInstance()
Get the singleton instance of Matereal.

戻り値:
Returns the singleton instance of this class.

getOutStream

public java.io.PrintStream getOutStream()

setOutStream

public void setOutStream(java.io.PrintStream out)

getErrorStream

public java.io.PrintStream getErrorStream()

setErrorStream

public void setErrorStream(java.io.PrintStream err)

getDebugFrame

public javax.swing.JFrame getDebugFrame()

disposeDebugFrame

public void disposeDebugFrame()

showDebugFrame

public void showDebugFrame()

hideDebugFrame

public void hideDebugFrame()

invokeLater

protected void invokeLater(java.lang.Runnable runnable)

invokeAndWait

protected boolean invokeAndWait(java.lang.Runnable runnable)

getName

public java.lang.String getName()

isDisposing

public boolean isDisposing()

dispose

public void dispose()
Stop all services and prepare for shutting down Matereal.


registerEntity

public void registerEntity(Entity entity)
Called by Entity constructor.

パラメータ:
entity -
関連項目:
Entity

unregisterEntity

public boolean unregisterEntity(Entity entity)
Called by Entity.dispose().

パラメータ:
entity -
戻り値:
Returns if unregistered successfully.

registerService

public void registerService(Service service)
Called by Service#initialize().

パラメータ:
service -

unregisterService

public boolean unregisterService(Service service)
Called by Service.dispose().

パラメータ:
service -
戻り値:
Returns if unregistered successfully.

registerWorkflow

public void registerWorkflow(Workflow workflow)
Called by Workflow constructor.

パラメータ:
workflow -
関連項目:
Workflow

unregisterWorkflow

public boolean unregisterWorkflow(Workflow workflow)
Called by Workflow.dispose().

パラメータ:
workflow -
戻り値:
Returns if unregistered successfully.

getEntities

public java.util.Set<Entity> getEntities()
Get a set of entities.


getServices

public java.util.List<Service> getServices()
Get a list of services.


getServiceGroups

public java.util.Set<ServiceGroup> getServiceGroups()
Get a set of service groups.


getWorkflows

public java.util.Set<Workflow> getWorkflows()
Get a list of workflow graphs.


lookForEntities

public <T extends Entity> java.util.Set<T> lookForEntities(java.lang.Class<T> classObject)
Look for entities with specific class managed by matereal.

型パラメータ:
T - Class to look for.
パラメータ:
classObject - Class object of the class .
戻り値:

lookForServices

public <T extends Service> java.util.Set<T> lookForServices(java.lang.Class<T> classObject)
Look for services with specific class/interface.

型パラメータ:
T - Class to look for.
パラメータ:
classObject - Class object of the class .
戻り値:
関連項目:
ServiceGroup

lookForService

public <T extends Service> T lookForService(java.lang.Class<T> classObject)
Look for a service with specific class/interface.

型パラメータ:
T - Class to look for.
パラメータ:
classObject - Class object of the class .
戻り値:
関連項目:
ServiceGroup

lookForServices

public <T extends Service> java.util.Set<T> lookForServices(java.lang.Class<T> classObject,
                                                            java.lang.Iterable<Service> serviceIterator)
Look for services with specific class/interface in a service group.

型パラメータ:
T - Class to look for.
パラメータ:
classObject - Class object of the class .
serviceIterator - Iterator to look in.
戻り値:
Returns services satisfying given conditions.
関連項目:
lookForServices(Class)

lookForService

public <T extends Service> T lookForService(java.lang.Class<T> classObject,
                                            java.lang.Iterable<Service> serviceIterator)
Look for a service with specific class/interface in a service group.

型パラメータ:
T - Class to look for.
パラメータ:
classObject - Class object of the class .
serviceIterator - Iterator to look in.
戻り値:
Returns services satisfying given conditions.
関連項目:
lookForService(Class)

submit

public java.util.concurrent.Future<?> submit(java.lang.Runnable task)

scheduleAtFixedRate

public Matereal.Canceller scheduleAtFixedRate(java.lang.Runnable runnable,
                                              long interval)

addEventListener

public void addEventListener(EventListener listener)
Add an event listener.

定義:
インタフェース EventProvider 内の addEventListener
関連項目:
EventProvider.removeEventListener(EventListener)

removeEventListener

public boolean removeEventListener(EventListener listener)
Remove an event listener.

定義:
インタフェース EventProvider 内の removeEventListener
戻り値:
Returns whether removal succeeded or not.
関連項目:
EventProvider.addEventListener(EventListener)

eventOccurred

public void eventOccurred(Event e)
定義:
インタフェース EventListener 内の eventOccurred

getDefaultFont

public java.awt.Font getDefaultFont()

toString

public java.lang.String toString()
オーバーライド:
クラス java.lang.Object 内の toString


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