public class EventInPort<FsmType extends MachineBase> extends InPortBase
This is a template class that implements EventInPort.
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
EventInPort.EventBinder0 |
(package private) class |
EventInPort.EventBinder1<DataType> |
PortBase.connect_func, PortBase.disconnect_all_func, PortBase.disconnect_func, PortBase.find_conn_id, PortBase.find_interface, PortBase.find_port_refm_connectors, m_consumerTypes, m_listeners, m_properties, m_providerTypes, m_singlebuffer, m_thebufferm_connectionLimit, m_connectorsMutex, m_objref, m_onConnected, m_onConnectionLost, m_onConnectionLost_mutex, m_onDisconnected, m_onPublishInterfaces, m_onSubscribeInterfaces, m_onUnsubscribeInterfaces, m_ownerInstanceName, m_portconnListeners, m_profile, m_profile_mutex, rtcout| Constructor and Description |
|---|
EventInPort(java.lang.String name,
DataRef<FsmType> fsm) |
EventInPort(java.lang.String name,
DataRef<FsmType> fsm,
boolean read_block,
boolean write_block,
long read_timeout,
long write_timeout)
A constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
bindEvent(java.lang.String name,
java.lang.String handler) |
<DataType> void |
bindEvent(java.lang.String name,
java.lang.String handler,
DataType data) |
java.lang.String |
name()
Get port name
|
boolean |
read()
It is a virtual method that is called from
RTObject_impl::readAll().
|
activateInterfaces, addConnectorDataListener, addConnectorDataListener, addConnectorDataListener, addConnectorDataListener, addConnectorListener, addConnectorListener, connect, connectors, createConnector, createConnector, createConsumer, createProvider, deactivateInterfaces, getConnectorById, getConnectorByName, getConnectorIds, getConnectorNames, getConnectorProfileById, getConnectorProfileByName, getConnectorProfiles, getListeners, getLocalOutPort, init, initConsumers, initProviders, isLittleEndian, notify_connect, properties, publishInterfaces, removeConnectorDataListener, removeConnectorDataListener, removeConnectorListener, subscribeInterfaces, unsubscribeInterfaces_publishInterfaces, _this, addProperty, appendInterface, appendProperty, checkPorts, connectNext, deleteInterface, disconnect_all, disconnect, disconnectNext, eraseConnectorProfile, findConnProfile, findConnProfileIndex, get_connector_profile, get_connector_profiles, get_port_profile, getName, getPortProfile, getPortRef, getProfile, getUUID, isEmptyId, isExistingConnId, notify_disconnect, onConnected, onConnectNextport, onDisconnected, onDisconnectNextport, onNotifyConnect, onNotifyDisconnect, onPublishInterfaces, onSubscribeInterfaces, onUnsubscribeInterfaces, setConnectionLimit, setName, setOnConnected, setOnConnectionLost, setOnDisconnected, setOnPublishInterfaces, setOnSubscribeInterfaces, setOnUnsubscribeInterfaces, setOwner, setPortConnectListenerHolder, setPortRef, setUUID, updateConnectorProfile, updateConnectors_all_interfaces, _invoke, _thispublic EventInPort(java.lang.String name,
DataRef<FsmType> fsm,
boolean read_block,
boolean write_block,
long read_timeout,
long write_timeout)
This is bound to type-T variable given as a parameter.
name -
A name of the EventInPort. This name is referred by
EventInPortBase::name().fsm -
type-T variable that is bound to this EventInPort.read_block -
Flag of reading block.
When there are not unread data at reading data,
set whether to block data until receiving the next
data. (The default value:false)write_block -
Flag of writing block.
If the buffer was full at writing data, set whether
to block data until the buffer has space.
(The default value:false)read_timeout -
Data reading timeout time (millisecond)
when not specifying read blocking.
(The default value:0)write_timeout -
Data writing timeout time (millisecond)
when not specifying writing block.
(The default value:0)public java.lang.String name()
Get port name.
public <DataType> void bindEvent(java.lang.String name,
java.lang.String handler,
DataType data)
public void bindEvent(java.lang.String name,
java.lang.String handler)
public boolean read()
InPortBaseThis method reads out data from DataPort.
read in class InPortBase