simulink

edu.tum.cs.simulink.model
Class SimulinkPortBase

java.lang.Object
  extended by edu.tum.cs.simulink.model.SimulinkPortBase
Direct Known Subclasses:
SimulinkInPort, SimulinkOutPort

public abstract class SimulinkPortBase
extends java.lang.Object

Base class for Simulink ports.

Version:
$Rev: 26285 $
Author:
deissenb, $Author: juergens $
Rating:
GREEN Hash: F39DDE57EE64721C74C10EA84071D623

Constructor Summary
protected SimulinkPortBase(SimulinkBlock block, java.lang.String index)
          Create Simulink port.
 
Method Summary
 SimulinkBlock getBlock()
          Get the block this port belongs to.
 java.lang.String getIndex()
          Get the port index.
 void remove()
          This only sets the block to null.
 java.lang.String toString()
          Get string representation of this block: <index>@<block_id>.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimulinkPortBase

protected SimulinkPortBase(SimulinkBlock block,
                           java.lang.String index)
Create Simulink port.

Parameters:
block - The block this port belongs to.
index - The port index. This may be a number or a string like 'enable' indicating a special port.
Method Detail

getIndex

public java.lang.String getIndex()
Get the port index. This may be a number or a string like 'enable' indicating a special port.


getBlock

public SimulinkBlock getBlock()
Get the block this port belongs to.


toString

public java.lang.String toString()
Get string representation of this block: <index>@<block_id>.

Overrides:
toString in class java.lang.Object

remove

public void remove()
This only sets the block to null. Acutal remove implementation is done in the sub classes.


simulink

simulink - 2.7