public class PcmRepositoryWriter extends Object
PcmRepositoryBlackboardFactoryAdder
and may not
be useable with other blackboards.Constructor and Description |
---|
PcmRepositoryWriter(Blackboard blackboard)
Creates a writer to write the results written on
blackboard back to a PCM
repository. |
Modifier and Type | Method and Description |
---|---|
void |
writeTo(File repositoryFile)
Writes the Beagle’s findings to the
repositoryFile . |
public PcmRepositoryWriter(Blackboard blackboard)
blackboard
back to a PCM
repository.blackboard
- The blackboard containing results.public void writeTo(File repositoryFile)
repositoryFile
. For each
ResourceDemandingInternalAction, SeffBranch and
SeffLoop, the method will look up the identifier of the element in the
source repository file the object was created for. If repositoryFile
contains an element with this identifier that is of the appropriate type, the
object’s result will appropriately written to repositoryFile
. Nothing will
be written otherwise.
If the element Id with final EvaluableExpression from the Blackboard can not be found in the repository file.
If the Blackboard elements (e.g. SeffBranch) from the elements with final EvaluableExpression from the Blackboard do not Correspond to the repository PCM elements (e.g. BranchAction).
repositoryFile
- A PCM repository file to write Beagle’s results to. It should
use the same identifiers for elements as the repository file Beagle’s
blackboard was initially created for.