|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.tools.AbstractObservable<Port>
com.rapidminer.operator.ports.impl.AbstractPort
com.rapidminer.operator.ports.impl.OutputPortImpl
public class OutputPortImpl
| Field Summary |
|---|
| Fields inherited from interface com.rapidminer.operator.ports.Port |
|---|
CLEAR_ALL, CLEAR_ALL_ERRORS, CLEAR_ALL_METADATA, CLEAR_DATA, CLEAR_META_DATA_ERRORS, CLEAR_METADATA, CLEAR_REAL_METADATA, CLEAR_SIMPLE_ERRORS |
| Constructor Summary | |
|---|---|
protected |
OutputPortImpl(Ports<? extends Port> owner,
java.lang.String name,
boolean simulatesStack)
Use the factory method OutputPorts#createPort() to create OutputPorts. |
| Method Summary | |
|---|---|
void |
clear(int clearFlags)
Clears data, meta data and errors at this port. |
void |
connectTo(InputPort inputPort)
Connects to an input port. |
void |
deliver(IOObject object)
Delivers an object to the connected InputPort or ignores
it if the output port is not connected. |
void |
deliverMD(MetaData md)
Does the same as #deliver(Object) except that only meta data is delivered. |
void |
disconnect()
Disconnects the OutputPort from its InputPort. |
java.lang.String |
getDescription()
Returns a human readable description of the ports pre/ and postconditions. |
InputPort |
getDestination()
Returns the destination input port. |
MetaData |
getMetaData()
Returns the meta data currently assigned to this port. |
boolean |
isConnected()
Returns true if connected to another Port. |
boolean |
shouldAutoConnect()
Asks the owning operator Operator.shouldAutoConnect(OutputPort). |
| Methods inherited from class com.rapidminer.operator.ports.impl.AbstractPort |
|---|
addError, collectQuickFixes, freeMemory, getAnyDataOrNull, getData, getData, getDataOrNull, getErrors, getName, getPorts, getShortName, getSpec, isLocked, lock, setData, setName, simulatesStack, toString, unlock |
| Methods inherited from class com.rapidminer.tools.AbstractObservable |
|---|
addObserver, addObserverAsFirst, fireUpdate, fireUpdate, removeObserver |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.rapidminer.operator.ports.Port |
|---|
addError, collectQuickFixes, freeMemory, getAnyDataOrNull, getData, getData, getDataOrNull, getErrors, getName, getPorts, getShortName, getSpec, isLocked, lock, simulatesStack, unlock |
| Methods inherited from interface com.rapidminer.tools.Observable |
|---|
addObserver, addObserverAsFirst, removeObserver |
| Constructor Detail |
|---|
protected OutputPortImpl(Ports<? extends Port> owner,
java.lang.String name,
boolean simulatesStack)
OutputPorts#createPort() to create OutputPorts.
| Method Detail |
|---|
public void clear(int clearFlags)
Port
clear in interface Portclear in class AbstractPortclearFlags - disjunction of the CLEAR_XX constants.
public void connectTo(InputPort inputPort)
throws PortException
OutputPort
connectTo in interface OutputPortPortException - if already connected.
public void disconnect()
throws PortException
OutputPortPort.lock() port first.
disconnect in interface OutputPortPortException - if not connected.public void deliver(IOObject object)
OutputPortInputPort or ignores
it if the output port is not connected.
deliver in interface OutputPortpublic void deliverMD(MetaData md)
OutputPort#deliver(Object) except that only meta data is delivered.
This method is called by the Operator's MDTransformer.
deliverMD in interface OutputPortpublic MetaData getMetaData()
Port
getMetaData in interface Portpublic InputPort getDestination()
OutputPort
getDestination in interface OutputPortpublic java.lang.String getDescription()
Port
getDescription in interface Portpublic boolean isConnected()
Port
isConnected in interface Portpublic boolean shouldAutoConnect()
OutputPortOperator.shouldAutoConnect(OutputPort).
shouldAutoConnect in interface OutputPort
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||