Class GroovyEventModelsSupplier
- java.lang.Object
-
- com.powsybl.dynamicsimulation.groovy.GroovyEventModelsSupplier
-
- All Implemented Interfaces:
EventModelsSupplier
,SimulatorInputSupplier<EventModel>
public class GroovyEventModelsSupplier extends Object implements EventModelsSupplier
- Author:
- Marcos de Miguel
-
-
Constructor Summary
Constructors Constructor Description GroovyEventModelsSupplier(InputStream is, List<EventModelGroovyExtension> extensions)
GroovyEventModelsSupplier(Path path)
GroovyEventModelsSupplier(Path path, List<EventModelGroovyExtension> extensions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<EventModel>
get(Network network)
Return a list ofString
getName()
Return the name of theDynamicSimulationProvider
instance, this provider is compatible with.
-
-
-
Constructor Detail
-
GroovyEventModelsSupplier
public GroovyEventModelsSupplier(Path path)
-
GroovyEventModelsSupplier
public GroovyEventModelsSupplier(Path path, List<EventModelGroovyExtension> extensions)
-
GroovyEventModelsSupplier
public GroovyEventModelsSupplier(InputStream is, List<EventModelGroovyExtension> extensions)
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:SimulatorInputSupplier
Return the name of theDynamicSimulationProvider
instance, this provider is compatible with. This method can return null, if this supplier is compatible with anyDynamicSimulationProvider
objects.- Specified by:
getName
in interfaceSimulatorInputSupplier<EventModel>
- Returns:
- The name of a compatible
DynamicSimulationProvider
, or null for any
-
get
public List<EventModel> get(Network network)
Description copied from interface:SimulatorInputSupplier
Return a list ofT
objects specific to a given network- Specified by:
get
in interfaceSimulatorInputSupplier<EventModel>
- Parameters:
network
- The network used to filter the content of the list- Returns:
- A list of
T
for the given network
-
-