|
||||||||||
| 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.InputPortImpl
public class InputPortImpl
The default implmentation of an InputPort
| 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 |
InputPortImpl(Ports<? extends Port> owner,
java.lang.String name,
boolean simulatesStack)
Use the factory method InputPorts#createPort() to create InputPorts. |
| Method Summary | |
|---|---|
void |
addPrecondition(Precondition precondition)
Adds a precondition to this input port. |
void |
checkPreconditions()
Checks all registered preconditions. |
void |
clear(int clearFlags)
Clears data, meta data and errors at this port. |
java.util.Collection<Precondition> |
getAllPreconditions()
Returns a collection (view) of all preconditions assigned to this InputPort. |
java.lang.String |
getDescription()
Returns a human readable description of the ports pre/ and postconditions. |
MetaData |
getMetaData()
Returns the meta data received by InputPort.receiveMD(MetaData). |
java.lang.String |
getPreconditionDescription()
Returns a human readable representation of the preconditions. |
OutputPort |
getSource()
Returns the output port to which this input port is connected. |
boolean |
isConnected()
Returns true if connected to another Port. |
boolean |
isInputCompatible(MetaData input,
CompatibilityLevel level)
Returns true if the given input is compatible with the preconditions. |
void |
receive(IOObject object)
Receives data from the output port. |
void |
receiveMD(MetaData metaData)
Does the same as #receive(Object) but only with meta data. |
void |
registerMetaDataChangeListener(MetaDataChangeListener listener)
This will add the given listener to this port. |
void |
removeMetaDataChangeListener(MetaDataChangeListener listener)
Removes the given listener again. |
| 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 InputPortImpl(Ports<? extends Port> owner,
java.lang.String name,
boolean simulatesStack)
InputPorts#createPort() to create InputPorts.
| Method Detail |
|---|
public void clear(int clearFlags)
Port
clear in interface Portclear in class AbstractPortclearFlags - disjunction of the CLEAR_XX constants.public void receive(IOObject object)
InputPortPortException if data
has already been set. (Called by OuptutPort#deliver(Object). *
receive in interface InputPortpublic void receiveMD(MetaData metaData)
InputPort#receive(Object) but only with meta data.
receiveMD in interface InputPortpublic MetaData getMetaData()
InputPortInputPort.receiveMD(MetaData).
getMetaData in interface InputPortgetMetaData in interface Portpublic OutputPort getSource()
InputPort
getSource in interface InputPortpublic void addPrecondition(Precondition precondition)
InputPort
addPrecondition in interface InputPortpublic void checkPreconditions()
InputPort
checkPreconditions in interface InputPortpublic java.lang.String getPreconditionDescription()
InputPort
getPreconditionDescription in interface InputPort
public boolean isInputCompatible(MetaData input,
CompatibilityLevel level)
InputPort
isInputCompatible in interface InputPortpublic java.lang.String getDescription()
Port
getDescription in interface Portpublic boolean isConnected()
Port
isConnected in interface Portpublic java.util.Collection<Precondition> getAllPreconditions()
InputPort
getAllPreconditions in interface InputPortpublic void registerMetaDataChangeListener(MetaDataChangeListener listener)
InputPortInputPort.receiveMD(MetaData) is called.
registerMetaDataChangeListener in interface InputPortpublic void removeMetaDataChangeListener(MetaDataChangeListener listener)
InputPort
removeMetaDataChangeListener in interface InputPort
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||