Package org.lemsml.jlems.api
Class LEMSBuilder
- java.lang.Object
-
- org.lemsml.jlems.api.LEMSBuilder
-
- All Implemented Interfaces:
ILEMSBuilder
public class LEMSBuilder extends java.lang.Object implements ILEMSBuilder
This class implements the API interface to build a LEMS document. At the moment we don't have separate document classes which just contain the data that can be simulated but this class and the API in general aims at hiding this. Subsequent refactor will have to split the model from the logic!
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<ILEMSDocument>
_documents
-
Constructor Summary
Constructors Constructor Description LEMSBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDocument(ILEMSDocument lemsDocument)
java.util.Collection<ILEMSStateInstance>
build(ILEMSBuildConfiguration config, ILEMSBuildOptions options)
java.util.Collection<ILEMSStateInstance>
createExecutableInstance(java.util.Map<ILEMSStateType,ILEMSDocument> stateMap, ILEMSBuildOptions options)
java.util.Map<ILEMSStateType,ILEMSDocument>
createLEMSStates(ILEMSBuildConfiguration config, ILEMSBuildOptions options)
-
-
-
Field Detail
-
_documents
private java.util.List<ILEMSDocument> _documents
-
-
Method Detail
-
addDocument
public void addDocument(ILEMSDocument lemsDocument)
- Specified by:
addDocument
in interfaceILEMSBuilder
-
build
public java.util.Collection<ILEMSStateInstance> build(ILEMSBuildConfiguration config, ILEMSBuildOptions options) throws LEMSBuildException
- Specified by:
build
in interfaceILEMSBuilder
- Throws:
LEMSBuildException
-
createLEMSStates
public java.util.Map<ILEMSStateType,ILEMSDocument> createLEMSStates(ILEMSBuildConfiguration config, ILEMSBuildOptions options) throws LEMSBuildException
- Specified by:
createLEMSStates
in interfaceILEMSBuilder
- Throws:
LEMSBuildException
-
createExecutableInstance
public java.util.Collection<ILEMSStateInstance> createExecutableInstance(java.util.Map<ILEMSStateType,ILEMSDocument> stateMap, ILEMSBuildOptions options) throws LEMSBuildException
- Specified by:
createExecutableInstance
in interfaceILEMSBuilder
- Throws:
LEMSBuildException
-
-