|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
public interface Module
A Module is a "black box" which does a part of the overall processing.
It might have InputConnectors from which it receives data.
It might have OutputConnectors to which it transmits data.
its properties are exposed via Java Beans compliant accessing methods
(setXXX()/getXXX)
getLatency(.) removed since it was not used
Source.process calls MediaOutputConnector.getEmptyBuffer() Source.process puts buffer in the empty buffer container Source.process calls MediaOutputConnector.writeReport(true) MediaOutputConnector.writeReport calls Drain.connectorPushed. Drain.connectorPushed calls Drain.process Drain.process calls MediaInputConnector.getValidBuffer Drain.process proccesses the Buffer Drain.process calls MediaInputConnector.readReport
Control
,
Connector
,
InputConnector
,
OutputConnector
方法摘要 | |
---|---|
void |
connectorPushed(InputConnector inputConnector)
A callback function denoting data was written to one of this Module input Connectors. |
InputConnector |
getInputConnector(java.lang.String connectorName)
Return the specified input connector. |
java.lang.String[] |
getInputConnectorNames()
Return an array of strings containing this Module's input connectors names (both connected and unconnected). |
java.lang.String |
getName()
returns the name of this Module in the Player |
OutputConnector |
getOutputConnector(java.lang.String connectorName)
Return the specified output connector. |
java.lang.String[] |
getOutputConnectorNames()
Return an array of strings containing this Module's output connectors names (both connected and unconnected). |
boolean |
isInterrupted()
Query to see if the module has just been interrupted. |
void |
registerInputConnector(java.lang.String name,
InputConnector in)
Each of the inputConnectors of this Module has to be registered with this function. |
void |
registerOutputConnector(java.lang.String name,
OutputConnector out)
Each of the outputConnectors of this Module has to be registered with this function. |
void |
reset()
Return the Module to its initial state. |
void |
setFormat(Connector connector,
Format format)
Selects a format for the Connector (the default is null). |
void |
setJMD(JMD jmd)
Set the JMD debugger instance for the module to use. |
void |
setModuleListener(ModuleListener listener)
Specify a ModuleListener to which this Module
will send events. |
void |
setName(java.lang.String name)
sets the name of this Module. |
从接口 javax.media.Controls 继承的方法 |
---|
getControl, getControls |
方法详细信息 |
---|
java.lang.String[] getInputConnectorNames()
java.lang.String[] getOutputConnectorNames()
InputConnector getInputConnector(java.lang.String connectorName)
connectorName
- the name of the connector.
OutputConnector getOutputConnector(java.lang.String connectorName)
connectorName
- the name of the connector
void registerInputConnector(java.lang.String name, InputConnector in)
void registerOutputConnector(java.lang.String name, OutputConnector out)
void reset()
void connectorPushed(InputConnector inputConnector)
inputConnector
- the inputConnector of the connection which have received data.java.lang.String getName()
void setName(java.lang.String name)
void setFormat(Connector connector, Format format)
void setModuleListener(ModuleListener listener)
ModuleListener
to which this Module
will send events.
listener
- The listener to which the Module
will
post events.boolean isInterrupted()
void setJMD(JMD jmd)
|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |