ImudServices
, java.io.Serializable
public class IMudInterface extends java.lang.Object implements ImudServices, java.io.Serializable
Modifier and Type | Field | Description |
---|---|---|
java.util.List<ChannelsLibrary.CMChannel> |
channels |
|
java.lang.String |
i3state |
|
java.lang.String |
name |
|
int |
port |
|
static long |
serialVersionUID |
|
Room |
universalR |
|
java.lang.String |
version |
Constructor | Description |
---|---|
IMudInterface(java.lang.String Name,
java.lang.String Version,
int Port,
java.lang.String i3status,
java.util.List<ChannelsLibrary.CMChannel> Channels) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
addChannel(ChannelsLibrary.CMChannel chan) |
Register a fake channel
|
boolean |
delChannel(java.lang.String remoteChannelName) |
Remote a channel
|
protected MOB |
findSessMob(java.lang.String mobName) |
|
java.lang.String |
fixColors(java.lang.String str) |
|
java.util.Enumeration<java.lang.String> |
getChannels() |
|
long |
getLastPacketReceivedTime() |
|
java.lang.String |
getLocalChannel(java.lang.String str) |
Given a I3 channel name, this method should provide
the local name for that channel.
|
java.lang.String |
getLocalMask(java.lang.String str) |
Given a local channel name, this method should provide
the local mask for that channel.
|
java.lang.String |
getMudName() |
|
int |
getMudPort() |
|
java.lang.String |
getMudState() |
|
java.lang.String |
getMudVersion() |
|
java.lang.String |
getRemoteChannel(java.lang.String str) |
Given a local channel name, returns the remote
channel name.
|
java.lang.String |
getRemoteMask(java.lang.String str) |
Given a remote channel name, returns the mask
required.
|
protected Room |
getUniversalRoom() |
|
java.lang.String |
L(java.lang.String str,
java.lang.String... xs) |
|
void |
receive(Packet packet) |
Handles an incoming I3 packet asynchronously.
|
void |
resetLastPacketReceivedTime() |
reset the last packet received time
|
void |
setChannelsMap(java.util.List<ChannelsLibrary.CMChannel> channels) |
|
java.lang.String |
socialFixIn(java.lang.String str) |
public static final long serialVersionUID
public java.lang.String version
public java.lang.String name
public java.lang.String i3state
public Room universalR
public int port
public java.util.List<ChannelsLibrary.CMChannel> channels
public IMudInterface(java.lang.String Name, java.lang.String Version, int Port, java.lang.String i3status, java.util.List<ChannelsLibrary.CMChannel> Channels)
public java.lang.String L(java.lang.String str, java.lang.String... xs)
public void setChannelsMap(java.util.List<ChannelsLibrary.CMChannel> channels)
protected MOB findSessMob(java.lang.String mobName)
protected Room getUniversalRoom()
public java.lang.String fixColors(java.lang.String str)
public java.lang.String socialFixIn(java.lang.String str)
public long getLastPacketReceivedTime()
getLastPacketReceivedTime
in interface ImudServices
public void resetLastPacketReceivedTime()
ImudServices
resetLastPacketReceivedTime
in interface ImudServices
public void receive(Packet packet)
receive
in interface ImudServices
packet
- the incoming packetpublic java.util.Enumeration<java.lang.String> getChannels()
getChannels
in interface ImudServices
public boolean addChannel(ChannelsLibrary.CMChannel chan)
addChannel
in interface ImudServices
chan
- the remote channel nameImudServices.getLocalChannel(java.lang.String)
public boolean delChannel(java.lang.String remoteChannelName)
delChannel
in interface ImudServices
remoteChannelName
- the remote namepublic java.lang.String getLocalChannel(java.lang.String str)
getLocalChannel
in interface ImudServices
str
- the remote name of the desired channelgetRemoteChannel(java.lang.String)
public java.lang.String getLocalMask(java.lang.String str)
str
- the local name of the desired channelgetLocalMask(java.lang.String)
public java.lang.String getMudName()
getMudName
in interface ImudServices
public java.lang.String getMudVersion()
getMudVersion
in interface ImudServices
public java.lang.String getMudState()
getMudState
in interface ImudServices
public int getMudPort()
getMudPort
in interface ImudServices
public java.lang.String getRemoteMask(java.lang.String str)
getRemoteMask
in interface ImudServices
str
- the remote name of the desired channelpublic java.lang.String getRemoteChannel(java.lang.String str)
getRemoteChannel
in interface ImudServices
str
- the local name of the desired channel