edu.jhu.ece.iacl.jist.pipeline
Class PipeChildPort

java.lang.Object
  extended by edu.jhu.ece.iacl.jist.pipeline.PipePort<java.lang.Object>
      extended by edu.jhu.ece.iacl.jist.pipeline.PipeChildPort

public class PipeChildPort
extends PipePort<java.lang.Object>

Port that allows a Pipe Source to be a child of another Pipe Source.

Author:
Blake Lucas

Nested Class Summary
 
Nested classes/interfaces inherited from class edu.jhu.ece.iacl.jist.pipeline.PipePort
PipePort.PortListener, PipePort.type
 
Field Summary
 
Fields inherited from class edu.jhu.ece.iacl.jist.pipeline.PipePort
connectible, gport, incomingConnectors, listeners, maxIncoming, maxOutgoing, outgoingConnectors, owner, portType, useWire
 
Constructor Summary
PipeChildPort()
          Port is always initialized as an input port.
 
Method Summary
 PipeChildPort clone()
          Clone port.
 java.lang.String getLabel()
          Always returns "Child".
 java.lang.String getName()
          Always returns "child".
 PipeSource getOwner()
          Get source module that owns this port.
 java.lang.Object getValue()
          Unimplemented.
 javax.swing.JPanel getView()
          Unimplemented.
 void init()
          Initialize child port as always an input port.
 boolean isCompatible(PipePort p)
          Only allow child ports to connect to parent ports.
 void setLabel(java.lang.String label)
          Unimplemented.
 void setName(java.lang.String name)
          Unimplemented.
 void setValue(java.lang.Object value)
          Unimplemented.
 void validate()
          Valid if connected.
 
Methods inherited from class edu.jhu.ece.iacl.jist.pipeline.PipePort
addListener, disconnect, disconnect, disconnect, disconnect, getDescription, getGraphPort, getIncomingConnector, getIncomingConnectors, getIncomingPorts, getListeners, getMaxIncoming, getMaxOutgoing, getOutgoingConnector, getOutgoingConnectors, getOutgoingPorts, getPortType, isConnected, isConnectedTo, isConnectible, isInputPort, isOutputPort, notifyListenersOfConnection, notifyListenersOfDisconnection, removeAllListeners, removeListener, setConnectable, setGraphPort, setMaxIncoming, setMaxOutgoing, setOwner, setPortType, setUseConnector, toString, usingConnector
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PipeChildPort

public PipeChildPort()
Port is always initialized as an input port.

Method Detail

clone

public PipeChildPort clone()
Clone port.

Specified by:
clone in class PipePort<java.lang.Object>
Returns:
the pipe child port

getLabel

public java.lang.String getLabel()
Always returns "Child".

Specified by:
getLabel in class PipePort<java.lang.Object>
Returns:
the label

getName

public java.lang.String getName()
Always returns "child".

Specified by:
getName in class PipePort<java.lang.Object>
Returns:
the name

getOwner

public PipeSource getOwner()
Get source module that owns this port.

Overrides:
getOwner in class PipePort<java.lang.Object>
Returns:
the owner

getValue

public java.lang.Object getValue()
Unimplemented.

Specified by:
getValue in class PipePort<java.lang.Object>
Returns:
the value

getView

public javax.swing.JPanel getView()
Unimplemented.

Specified by:
getView in class PipePort<java.lang.Object>
Returns:
the view

init

public void init()
Initialize child port as always an input port.

Specified by:
init in class PipePort<java.lang.Object>

isCompatible

public boolean isCompatible(PipePort p)
Only allow child ports to connect to parent ports.

Specified by:
isCompatible in class PipePort<java.lang.Object>
Parameters:
p - the port
Returns:
true, if checks if is compatible

setLabel

public void setLabel(java.lang.String label)
Unimplemented.

Specified by:
setLabel in class PipePort<java.lang.Object>
Parameters:
label - the label

setName

public void setName(java.lang.String name)
Unimplemented.

Specified by:
setName in class PipePort<java.lang.Object>
Parameters:
name - the name

setValue

public void setValue(java.lang.Object value)
Unimplemented.

Specified by:
setValue in class PipePort<java.lang.Object>
Parameters:
value - the value

validate

public void validate()
              throws InvalidParameterException
Valid if connected.

Specified by:
validate in class PipePort<java.lang.Object>
Throws:
InvalidParameterException - the invalid parameter exception