de.jiac.micro.core.scope
Class Scope

java.lang.Object
  extended by de.jiac.micro.core.scope.Scope
All Implemented Interfaces:
IScope
Direct Known Subclasses:
AgentScope, NodeScope

public class Scope
extends Object
implements IScope

Version:
$Revision$
Author:
Erdene-Ochir Tuguldur, Marcel Patzlaff

Nested Class Summary
 
Nested classes/interfaces inherited from interface de.jiac.micro.core.IScope
IScope.IScopeStateChangeListener
 
Field Summary
 
Fields inherited from interface de.jiac.micro.core.IScope
NODE_SCOPE_CLASS, SIG_INITIALISE, SIG_PAUSE, SIG_RESUME, SIG_START, SIG_TERMINATE
 
Constructor Summary
protected Scope(String runnerName, Class configurationSuperClass)
           
 
Method Summary
static Thread createScopeAwareThread(Runnable target, String name)
           
static Thread createScopeAwareThread(Scope scope, Runnable target, String name)
           
static void executeInScope(Runnable runnable)
           
static IContainer getContainer()
           
 IContainer getContainerReference()
           
static Scope getScope()
           
protected static Scope getScope(Class scopeType)
           
 IScopeMemory getScopeMemory()
           
 void setup(com.github.libxjava.lang.IClassLoader classLoader, String configurationClassName, IScope.IScopeStateChangeListener listener)
           
 void signal(byte signal)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Scope

protected Scope(String runnerName,
                Class configurationSuperClass)
Method Detail

getScope

public static Scope getScope()
                      throws IllegalThreadStateException
Throws:
IllegalThreadStateException

getScope

protected static Scope getScope(Class scopeType)
                         throws IllegalThreadStateException
Throws:
IllegalThreadStateException

createScopeAwareThread

public static Thread createScopeAwareThread(Scope scope,
                                            Runnable target,
                                            String name)

createScopeAwareThread

public static final Thread createScopeAwareThread(Runnable target,
                                                  String name)

getContainer

public static final IContainer getContainer()

executeInScope

public static final void executeInScope(Runnable runnable)

getScopeMemory

public final IScopeMemory getScopeMemory()

getContainerReference

public final IContainer getContainerReference()
Specified by:
getContainerReference in interface IScope

signal

public final void signal(byte signal)
Specified by:
signal in interface IScope

setup

public final void setup(com.github.libxjava.lang.IClassLoader classLoader,
                        String configurationClassName,
                        IScope.IScopeStateChangeListener listener)
Specified by:
setup in interface IScope


Copyright © 2008-2011 DAI-Labor. All Rights Reserved.