Class SimLoader
java.lang.Object
simEngine.SimLoader
This class contains the methods to load the DOM description of a
queueing network model from a XML file and then to create a Simulation object
from that description.
For each node, all parameters and sub-parameters are loaded using the suitable constructors.
- Version:
- 26-ago-2003 14.23.27 Modified by Ashanka (May 2010): Patch: Multi-Sink Perf. Index Description: Added new Performance index for capturing 1. global response time (ResponseTime per Sink) 2. global throughput (Throughput per Sink) each sink per class.
- Author:
- Federico Granata, Stefano Omini, Bertoli Marco
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConstructor<?> getConstructor(Class<?> c, Class<?>[] paramClasses) Gets an appropriate constructor for c given the paramClassesgetSim()Returns the Simulation object which has been created by this SimLoader while loading the queueing network model.
-
Constructor Details
-
SimLoader
Creates a Simulation object, loading all the model definition from the passed xml file- Parameters:
xmlPath- the absolute path of the xml model definition- Throws:
IOExceptionLoadException
-
-
Method Details
-
getSim
Returns the Simulation object which has been created by this SimLoader while loading the queueing network model.- Returns:
- The simulation created
-
getConstructor
public Constructor<?> getConstructor(Class<?> c, Class<?>[] paramClasses) throws NoSuchMethodException Gets an appropriate constructor for c given the paramClasses- Parameters:
c-paramClasses-- Returns:
- found constructor
- Throws:
NoSuchMethodException- if the operation cannot be completed
-