Skip to content
Snippets Groups Projects
Select Git revision
  • dbaaa5e5669cbfe7c2ffb03c6d59305778868a01
  • master default protected
  • bug-collection
3 results

BDDPortsPort.scala

Blame
  • BDDPortsPort.scala 833 B
    package bdd
    
    import org.rosi_project.model_management.sum.compartments.IComposition
    
    class BDDPortsPort(private val sInstance: BDD, private val tInstance: Port) extends IComposition {
    
      override def internalInitialize(): Unit = {
        this.source = new Source()
        this.target = new Target()
        sInstance play this.source
        tInstance play this.target
      }
    
      override def toString(): String = {
        "[BDDPortsPort " + source + ", " + target + "]"
      }
    
      def getSourceIns(): BDD = {
        return sInstance
      }
    
      def getTargetIns(): Port = {
        return tInstance
      }
    
      class Source extends ICompositionSource {
    
        override def toString(): String = {
          "S: (" + sInstance + ")"
        }
    
      }
    
      class Target extends ICompositionTarget {
    
        override def toString(): String = {
          "T: (" + tInstance + ")"
        }
    
      }
    
    }