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
-
-
Field Summary
Fields Modifier and Type Field Description protected groovy.lang.GroovyCodeSource
script
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractDslContingenciesProvider(InputStream input)
Creates a provider by reading the DSL content from a UTF-8 encoded input stream.protected
AbstractDslContingenciesProvider(Path path)
Creates a provider by reading the DSL from a UTF-8 encoded file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
asScript()
-
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
-
-
-
-
Constructor Detail
-
AbstractDslContingenciesProvider
protected AbstractDslContingenciesProvider(Path path)
Creates a provider by reading the DSL from a UTF-8 encoded file.
-
AbstractDslContingenciesProvider
protected AbstractDslContingenciesProvider(InputStream input)
Creates a provider by reading the DSL content from a UTF-8 encoded input stream.
-
-
Method Detail
-
asScript
public String asScript()
- Specified by:
asScript
in interfaceContingenciesProvider
-
-