All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.cloudbus.cloudsim.network.topologies.Point2D Maven / Gradle / Ivy

Go to download

CloudSim Plus: A modern, highly extensible and easier-to-use Java 8 Framework for Modeling and Simulation of Cloud Computing Infrastructures and Services

There is a newer version: 8.0.0
Show newest version
package org.cloudbus.cloudsim.network.topologies;

/**
 * A class to represent the coordinates of a 2-dimensional point.
 * @param x horizontal coordinate
 * @param y vertical coordinate
 */
public record Point2D(int x, int y) {
    /**
     * Creates an origin point with coordinates 0,0.
     */
    public Point2D(){
        this(0,0);
    }

    @Override
    public String toString() {
        return String.format("x: %d y: %d", x, y);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy