sysModel
Interface ISecurityAdapter


public interface ISecurityAdapter

Adapter to connect environments and security manager.

Author:
Mathias Ricken

Method Summary
 java.lang.ClassLoader getClassLoader()
          Return the class loader that checks fish classes for potential security violations.
 java.lang.ThreadGroup getFishThreadGroup()
          Get the thread group the fish are run in.
 void handleException(java.lang.Throwable t)
          Handle an exception that was caught during the simulation.
 void setProtected(boolean b)
          Set the protection flag.
 

Method Detail

setProtected

void setProtected(boolean b)
Set the protection flag.

Parameters:
b - true if actions are to be protected

getFishThreadGroup

java.lang.ThreadGroup getFishThreadGroup()
Get the thread group the fish are run in.

Returns:
fish thread group

getClassLoader

java.lang.ClassLoader getClassLoader()
Return the class loader that checks fish classes for potential security violations.

Returns:
class loader

handleException

void handleException(java.lang.Throwable t)
Handle an exception that was caught during the simulation.

Parameters:
t - caught exception