Skip to content
Snippets Groups Projects
Commit c9474336 authored by dougl's avatar dougl
Browse files

Douglas - Assignment 2 - Class renamed to YamashitaDeMouraMulticastEntity....

Douglas - Assignment 2 - Class renamed to YamashitaDeMouraMulticastEntity. Netbeans was trying to use the class with the same name located in "homework1" folder instead of the one located in "homework2" folder.
parent a4283359
No related branches found
No related tags found
No related merge requests found
//package homework2;
/**
* MV3500
*
* Entity
*
* @author Douglas Yamashita de Moura
* @version 20180227
*
*/
public class YamashitaDeMouraMulticastEntity {
private String name;
private float x;
private float y;
private float z;
private float speed;
public YamashitaDeMouraMulticastEntity (String name, float x, float y, float z, float speed) {
this.name = name;
this.x = x;
this.y = y;
this.z = z;
this.speed = speed;
}
/**
* @return the x
*/
public float getX() {
return x;
}
/**
* @param x the x to set
*/
public void setX(float x) {
this.x = x;
}
/**
* @return the y
*/
public float getY() {
return y;
}
/**
* @param y the y to set
*/
public void setY(float y) {
this.y = y;
}
/**
* @return the z
*/
public float getZ() {
return z;
}
/**
* @param z the z to set
*/
public void setZ(float z) {
this.z = z;
}
/**
* @return the name
*/
public String getName() {
return name;
}
/**
* @param name the name to set
*/
public void setName(String name) {
this.name = name;
}
/**
* @return the velocity
*/
public float getVelocity() {
return speed;
}
/**
* @param velocity the velocity to set
*/
public void setVelocity(float velocity) {
this.speed = velocity;
}
}
......@@ -21,8 +21,8 @@ public class YamashitaDeMouraMulticastSender {
public static void main(String[] args)
{
YamashitaDeMouraEntity entityA = new YamashitaDeMouraEntity("Alpha", 0, 0, 0, 2);
YamashitaDeMouraEntity entityB = new YamashitaDeMouraEntity("Bravo", 0, 0, 0, 3);
YamashitaDeMouraMulticastEntity entityA = new YamashitaDeMouraMulticastEntity("Alpha", 0, 0, 0, 2);
YamashitaDeMouraMulticastEntity entityB = new YamashitaDeMouraMulticastEntity("Bravo", 0, 0, 0, 3);
try
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment