T
- Data type, that this Entity works withENTITY_DATA
- Type of the remote entity data, that is tracked by communication listeners of this Entity.public class Entity<T,ENTITY_DATA extends DiscoveredData> extends Object
Modifier and Type | Field and Description |
---|---|
protected List<CommunicationListener<ENTITY_DATA>> |
communicationListeners
A List of communication listeners
|
Modifier | Constructor and Description |
---|---|
protected |
Entity(Participant p,
Class<T> type,
String typeName,
String topicName,
Guid guid)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addCommunicationListener(CommunicationListener<ENTITY_DATA> cl)
Adds a new CommunicationListener to this Entity.
|
Guid |
getGuid()
Gets the Guid of this Entity
|
Participant |
getParticipant()
Get the Participant that has created this Entity.
|
String |
getTopicName()
Get the name of the topic of this entity.
|
Class<T> |
getType()
Gets the type associated with this entity.
|
String |
getTypeName()
Gets the typeName of this entity.
|
void |
removeCommunicationListener(CommunicationListener<ENTITY_DATA> cl)
Removes a CommunicationListener from this Entity.
|
protected final List<CommunicationListener<ENTITY_DATA extends DiscoveredData>> communicationListeners
protected Entity(Participant p, Class<T> type, String typeName, String topicName, Guid guid)
p
- Participanttype
- Type of the entitytypeName
- if type null, typeName is set to be fully qualified class name of typetopicName
- name of the topic this entity is bound to.guid
- Guid of this Entitypublic void addCommunicationListener(CommunicationListener<ENTITY_DATA> cl)
cl
- CommunicationListener to addpublic void removeCommunicationListener(CommunicationListener<ENTITY_DATA> cl)
cl
- CommunicationListener to removepublic String getTopicName()
public Participant getParticipant()
public String getTypeName()
public Guid getGuid()
Copyright © 2016. All rights reserved.