java.lang.Object
org.bzdev.obnaming.ObjectNamerLauncher
org.bzdev.devqsim.SimulationLauncher
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
Animation2DLauncher
,DramaSimulationLauncher
Launcher for simulations.
Normally this class is not used directly, but instead is loaded
by using an SPI.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor.SimulationLauncher
(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
-
SimulationLauncher
public SimulationLauncher(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
- - if a needed class does not existIOException
- - if an IO error occurredIllegalAccessException
- - if this method cannot access a class, field, method, or constructor- See Also:
-
SimulationLauncher
Constructor.- Throws:
ClassNotFoundException
- - if a needed class does not existIOException
- - if an IO error occurredIllegalAccessException
- - if this method cannot access a class, field, method, or constructor
-
-
Method Details
-
getResourceStream
Get an input stream containing a YAML file describing the classes this launcher provides.- Returns:
- the input stream
-