Interface AgentItf
- All Known Subinterfaces:
- MobileAgentItf
- All Known Implementing Classes:
- StationaryAgent
- public interface AgentItf
- extends java.lang.Runnable, java.io.Serializable
- See Also:
Runnable
,
Serializable
Method Summary |
java.lang.String |
getHomeHostName()
Returns the host name of the agent's home agent server. |
int |
getHomePortNumber()
Returns the port number of the agent's home agent server. |
java.lang.String |
getName()
Returns the agent's name. |
void |
init(java.lang.String name,
java.lang.String homeHostName,
int homePortNumber)
Initializes the agent with a name , and the
host name and the port number of the
agent server on which it is created.
|
boolean |
isMobile()
Tests if the agent is mobile. |
Methods inherited from interface java.lang.Runnable |
run |
init
public void init(java.lang.String name,
java.lang.String homeHostName,
int homePortNumber)
- Initializes the agent with a
name
, and the
host name
and the port number
of the
agent server on which it is created.
- Parameters:
name
- the name of the agent.homeHostName
- the host name of the agent server.homePortNumber
- the port number of the agent server.
getName
public java.lang.String getName()
- Returns the agent's name.
- Returns:
- the name of the agent.
getHomeHostName
public java.lang.String getHomeHostName()
- Returns the host name of the agent's home agent server.
- Returns:
- host name of the home agent server.
getHomePortNumber
public int getHomePortNumber()
- Returns the port number of the agent's home agent server.
- Returns:
- port number of the home agent server.
isMobile
public boolean isMobile()
- Tests if the agent is mobile.
- Returns:
- TRUE if the agent is instance of
MobileAgentItf
and FALSE otherwise.