org.objectweb.dsrg.sofa.cushion.behavior
Class CheckerImpl

java.lang.Object
  extended by org.objectweb.dsrg.sofa.cushion.behavior.CheckerImpl
All Implemented Interfaces:
org.objectweb.dsrg.sofa.util.checker.Checker
Direct Known Subclasses:
BPChecker, EBP2PromChecker

public abstract class CheckerImpl
extends java.lang.Object
implements org.objectweb.dsrg.sofa.util.checker.Checker

Author:
kofron

Nested Class Summary
static class CheckerImpl.InvalidBindingTypeException
           
 
Constructor Summary
CheckerImpl()
           
 
Method Summary
protected abstract  java.lang.String getBehaviorType()
           
protected  org.objectweb.dsrg.sofa.repository.model.Frame getFrame(org.objectweb.dsrg.sofa.repository.model.Architecture arch)
           
protected abstract  org.ow2.dsrg.fm.bptools.architecture.ParsedArchitecture.ParserBridge getParserBridge()
           
protected  java.lang.String getProtocol(org.objectweb.dsrg.sofa.repository.model.Frame f)
           
protected  org.ow2.dsrg.fm.bptools.architecture.ParsedArchitecture parseArch(org.objectweb.dsrg.sofa.repository.model.Architecture arch)
          Fetch the behavior desrciption from the repository and returns the structure of this composite.
protected  void printStream(java.io.InputStream stream, java.io.PrintStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.dsrg.sofa.util.checker.Checker
checkArchitecture
 

Constructor Detail

CheckerImpl

public CheckerImpl()
Method Detail

getFrame

protected org.objectweb.dsrg.sofa.repository.model.Frame getFrame(org.objectweb.dsrg.sofa.repository.model.Architecture arch)
Returns:
implementing Frame FIXME: multiple frames possible

getProtocol

protected java.lang.String getProtocol(org.objectweb.dsrg.sofa.repository.model.Frame f)
Returns:
the type-corresponding behavior

getBehaviorType

protected abstract java.lang.String getBehaviorType()
Returns:
the used behavior type

getParserBridge

protected abstract org.ow2.dsrg.fm.bptools.architecture.ParsedArchitecture.ParserBridge getParserBridge()

printStream

protected void printStream(java.io.InputStream stream,
                           java.io.PrintStream out)
                    throws java.io.IOException
Throws:
java.io.IOException

parseArch

protected org.ow2.dsrg.fm.bptools.architecture.ParsedArchitecture parseArch(org.objectweb.dsrg.sofa.repository.model.Architecture arch)
                                                                     throws org.ow2.dsrg.fm.bptools.architecture.ParsedArchitecture.ArchitectureException
Fetch the behavior desrciption from the repository and returns the structure of this composite.

Throws:
org.ow2.dsrg.fm.bptools.architecture.ParsedArchitecture.ArchitectureException