Class IONRemoteAgent

  • All Implemented Interfaces:
    java.lang.Runnable

    public class IONRemoteAgent
    extends RemoteAgent
    Connection to the ION Framework's virtual world as a RemoteAgent. Implements the architecture Sensors and Effectors
    Author:
    Joao Dias
    • Constructor Detail

      • IONRemoteAgent

        public IONRemoteAgent​(java.lang.String host,
                              int port,
                              AgentCore agent)
                       throws java.net.UnknownHostException,
                              java.io.IOException
        Creates the IONRemoteAgent which tries to connect to the ION Framework
        Parameters:
        host - - the host where the virtual world is running
        port - - the socket port where the agent should try to connect
        agent - - a reference to the agent that needs this remote connection
        Throws:
        java.net.UnknownHostException - - thrown if the agent cannot connect to the server
        java.io.IOException - - thrown if there are problems reading or writting to the connection socket