noope.input
Class LawLoader

java.lang.Object
  |
  +--noope.input.LawLoader
Direct Known Subclasses:
DynamicLawLoader, HardCodedLawLoader

public abstract class LawLoader
extends java.lang.Object

Objects of this class provide to Laws a means of creating new instances of Law classes with a given name. These Law classes can be dynamically loaded or hard-coded into the LawLoader (e.g. for an Applet that isn't allowed by the SecurityManager to access the constructor of a dynamically loaded class).

Version:
28-Apr-2001
Author:
Miklos Reiter

Constructor Summary
LawLoader()
           
 
Method Summary
abstract  Law createLaw(java.lang.String className, BlockReaderLocation brL, BlockReader br, int lawnumber, Physics phys)
          This method should create a new Law object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LawLoader

public LawLoader()
Method Detail

createLaw

public abstract Law createLaw(java.lang.String className,
                              BlockReaderLocation brL,
                              BlockReader br,
                              int lawnumber,
                              Physics phys)
                       throws BRLoadingException
This method should create a new Law object. The arguments, except for className and brL are passed on to the Law constructor, so the class has to have a constructor of this form.