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

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

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

Port that allows a Pipe Source to be a parent 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
protected  ParamModel param
          The parameter.
 
Fields inherited from class edu.jhu.ece.iacl.jist.pipeline.PipePort
connectible, gport, incomingConnectors, listeners, maxIncoming, maxOutgoing, outgoingConnectors, owner, portType, useWire
 
Constructor Summary
PipeParentPort()
          Parent ports are always initialized as output ports.
 
Method Summary
 PipeParentPort clone()
          Clone parent port.
 java.lang.String getLabel()
          Always returns "Parent".
 java.lang.String getName()
          Always returns "parent".
 PipeSource getOwner()
          Get source that owns this port.
 java.lang.Object getValue()
          Get value from associated parameter.
 javax.swing.JPanel getView()
          Unimplemented.
 void init()
          Initialize port to always be a parent port.
 boolean isCompatible(PipePort p)
          Return true if other port is child port.
 void setLabel(java.lang.String label)
          Unimplemented.
 void setName(java.lang.String name)
          Unimplemented.
 void setParameter(ParamModel param)
          Set output parameter that is associated with this parent port.
 void setValue(java.lang.Object value)
          Unimplemented.
 void validate()
          Port is valid if it is connected to a child port.
 
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
 

Field Detail

param

protected transient ParamModel param
The parameter.

Constructor Detail

PipeParentPort

public PipeParentPort()
Parent ports are always initialized as output ports.

Method Detail

clone

public PipeParentPort clone()
Clone parent port.

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

getLabel

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

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

getName

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

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

getOwner

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

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

getValue

public java.lang.Object getValue()
Get value from associated parameter.

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 port to always be a parent port.

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

isCompatible

public boolean isCompatible(PipePort p)
Return true if other port is child port.

Specified by:
isCompatible in class PipePort<java.lang.Object>
Parameters:
p - the p
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

setParameter

public void setParameter(ParamModel param)
Set output parameter that is associated with this parent port.

Parameters:
param - parameter

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
Port is valid if it is connected to a child port.

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