Prism.core
Interface IPort

All Superinterfaces:
IBrick
All Known Implementing Classes:
ExtensiblePort, Port

public interface IPort
extends IBrick

This interface is implemented by any object that wants to represent a port in Prism.

Version:
2.0
Author:
USC Soft. Arch. Group. Contact: Sam Malek malek@usc.edu

Method Summary
 ExtensiblePort getExtensiblePort()
          In situations when the Port is actually more specialized and is an ExtensiblePort, this method returns the ExtensiblePort.
 IPort getMutualPort()
          This method returns the mutual port
 IBrick getParentBrick()
          Returns the parent brick of this Port.
 int getPortType()
          Returns the type of port.
 void setExtensiblePort(ExtensiblePort pExtPort)
          Sets the reference of this port object to its ExtensiblePort(child).
 void setMutualPort(IPort pPort)
          Sets the mutual port for this port
 void setParentBrick(IBrick pParentBrick)
          Sets the parent brick of this Port.
 
Methods inherited from interface Prism.core.IBrick
add, getName, getScaffold, getStyle, handle, setName, setScaffold, start
 

Method Detail

getPortType

int getPortType()
Returns the type of port.

Returns:
int port type

getParentBrick

IBrick getParentBrick()
Returns the parent brick of this Port.

Returns:
Brick parent Brick

setParentBrick

void setParentBrick(IBrick pParentBrick)
Sets the parent brick of this Port.


getExtensiblePort

ExtensiblePort getExtensiblePort()
In situations when the Port is actually more specialized and is an ExtensiblePort, this method returns the ExtensiblePort.

Returns:
ExtensiblePort child ExtensiblePort

setExtensiblePort

void setExtensiblePort(ExtensiblePort pExtPort)
Sets the reference of this port object to its ExtensiblePort(child).

Parameters:
pExtPort - child ExtensiblePort

setMutualPort

void setMutualPort(IPort pPort)
Sets the mutual port for this port

Parameters:
pPort - Port to be added

getMutualPort

IPort getMutualPort()
This method returns the mutual port

Returns:
IPort the mutual port