Class RemoteObjectMatrixUDP

    • Field Detail

      • receivedPacket

        private java.net.DatagramPacket receivedPacket
      • socket

        private java.net.DatagramSocket socket
      • destination

        private java.net.SocketAddress destination
    • Constructor Detail

      • RemoteObjectMatrixUDP

        public RemoteObjectMatrixUDP​(java.lang.String server,
                                     int port)
    • Method Detail

      • getAsDouble

        public double getAsDouble​(long... coordinates)
        Description copied from interface: GettersAndSetters
        Returns a double representation of an entry in the matrix. The stored value will be converted to a double as good as possible.
        Specified by:
        getAsDouble in interface GettersAndSetters
        Overrides:
        getAsDouble in class AbstractObjectMatrix
        Parameters:
        coordinates - location of the entry
        Returns:
        a double representation of the entry @
      • setAsDouble

        public void setAsDouble​(double value,
                                long... coordinates)
        Description copied from interface: GettersAndSetters
        Sets an entry in the matrix to a double value. If the matrix cannot store double values, the value will be represented as good as possible.
        Specified by:
        setAsDouble in interface GettersAndSetters
        Overrides:
        setAsDouble in class AbstractObjectMatrix
        Parameters:
        value - double value
        coordinates - location of the entry @
      • getObject

        public java.lang.Object getObject​(long... coordinates)