Package kr.ac.konkuk.ccslab.cm.entity
Class CMGroupInfo
java.lang.Object
kr.ac.konkuk.ccslab.cm.entity.CMGroupInfo
- Direct Known Subclasses:
CMGroup
The CMGroupInfo class represents a group in a session.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of the CMGroupInfo class.CMGroupInfo
(String gname, String address, int port) Creates an instance of the CMGroupInfo class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the multicast address assigned to this group.Returns the group name.int
Returns the multicast port number of this group.void
setGroupAddress
(String addr) void
setGroupName
(String name) void
setGroupPort
(int port)
-
Field Details
-
m_strGroupName
-
m_strGroupAddress
-
m_nGroupPort
protected int m_nGroupPort
-
-
Constructor Details
-
CMGroupInfo
public CMGroupInfo()Creates an instance of the CMGroupInfo class. -
CMGroupInfo
Creates an instance of the CMGroupInfo class.- Parameters:
gname
- - group nameaddress
- - multicast address assigned to this groupport
- - multicast port number of this group
-
-
Method Details
-
setGroupName
-
setGroupAddress
-
setGroupPort
public void setGroupPort(int port) -
getGroupName
Returns the group name.- Returns:
- the group name.
-
getGroupAddress
Returns the multicast address assigned to this group.- Returns:
- the multicast address
-
getGroupPort
public int getGroupPort()Returns the multicast port number of this group.- Returns:
- the port number
-