org.cloudbus.cloudsim.network.topologies.Point2D Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudsim-plus Show documentation
Show all versions of cloudsim-plus Show documentation
CloudSim Plus: A modern, highly extensible and easier-to-use Java 8 Framework for Modeling and Simulation of Cloud Computing Infrastructures and Services
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);
}
}