noope.input
Class HardCodedLawLoader
java.lang.Object
|
+--noope.input.LawLoader
|
+--noope.input.HardCodedLawLoader
- public class HardCodedLawLoader
- extends LawLoader
This is an implementation of LawLoader that hard-codes all the known Law classes.
This is meant as a workaround for Netscape's paranoid SecurityManager. In applications, use
DynamicLawLoader.
- Version:
- 28-Apr-2001
- Author:
- Miklos Reiter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HardCodedLawLoader
public HardCodedLawLoader()
- This constructor does nothing.
createLaw
public Law createLaw(java.lang.String className,
BlockReaderLocation brL,
BlockReader br,
int lawnumber,
Physics phys)
throws BRLoadingException
- Returns a new Law object.
This class knows the non-abstract laws as of 29-Apr-2001.
- Overrides:
createLaw
in class LawLoader