Package com.powsybl.contingency.dsl
Class AbstractDslContingenciesProvider
java.lang.Object
com.powsybl.contingency.dsl.AbstractDslContingenciesProvider
- All Implemented Interfaces:
ContingenciesProvider
- Direct Known Subclasses:
GroovyDslContingenciesProvider
,GroovyDslContingenciesProvider
public abstract class AbstractDslContingenciesProvider
extends Object
implements ContingenciesProvider
- Author:
- Mathieu Bague <mathieu.bague at rte-france.com>
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
Creates a provider by reading the DSL content from a UTF-8 encoded input stream.protected
Creates a provider by reading the DSL from a UTF-8 encoded file. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.powsybl.contingency.ContingenciesProvider
getContingencies
-
Field Details
-
script
protected final groovy.lang.GroovyCodeSource script
-
-
Constructor Details
-
AbstractDslContingenciesProvider
Creates a provider by reading the DSL from a UTF-8 encoded file. -
AbstractDslContingenciesProvider
Creates a provider by reading the DSL content from a UTF-8 encoded input stream.
-
-
Method Details
-
asScript
- Specified by:
asScript
in interfaceContingenciesProvider
-