java.lang.Object
org.bzdev.obnaming.ObjectNamerLauncher
org.bzdev.devqsim.SimulationLauncher
org.bzdev.drama.DramaSimulationLauncher
- All Implemented Interfaces:
AutoCloseable
Launcher for simulations that use the drama package.
Normally this class is not used directly, but instead is loaded
by using an SPI.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor.DramaSimulationLauncher
(JSObject initializer) Constructor with additional class data. -
Method Summary
Modifier and TypeMethodDescriptionstatic InputStream
Get an input stream containing a YAML file describing the classes this launcher provides.Methods inherited from class org.bzdev.obnaming.ObjectNamerLauncher
clear, close, combine, createAPIMap, currentLauncher, exists, findRVFMethod, get, getArgumentClasses, getConstants, getConstructors, getFunctions, getLauncherDataNames, getLauncherNames, getMethods, getProviderKeyMap, getReturnClasses, keylistForArgumentClasses, keylistForConstants, keylistForConstructors, keylistForFunctions, keylistForMethods, keylistForMethods, keylistForReturnClasses, loadFromStream, newInstance, newInstance, process, process, process, process, process, remove, resetLoaders, set, variables
-
Constructor Details
-
DramaSimulationLauncher
public DramaSimulationLauncher(JSObject initializer) throws ClassNotFoundException, IOException, IllegalAccessException Constructor with additional class data. The initializer is a JSObject obtained by parsing a YAML file or by combining the results of parsing YAML files.- Parameters:
initializer
- an object describing the additional configuration; null if there is nothing else to configure- Throws:
ClassNotFoundException
- a class needed to initialize this object could not be foundIOException
- an IO error occurredIllegalAccessException
- if a Constructor object is enforcing Java language access control and the underlying constructor is inaccessible.- See Also:
-
DramaSimulationLauncher
Constructor.- Throws:
ClassNotFoundException
- a class needed to initialize this object could not be foundIOException
- an IO error occurredIllegalAccessException
- if a Constructor object is enforcing Java language access control and the underlying constructor is inaccessible.
-
-
Method Details
-
getResourceStream
Get an input stream containing a YAML file describing the classes this launcher provides.- Returns:
- the input stream
-