Back to project page bluedroid-mp.
The source code is released under:
Apache License
If you think the Android project bluedroid-mp listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package uk.ac.gcu.bluedroid.resources; //from w w w. j a v a 2 s . c om import uk.ac.gcu.bluedroid.util.Position; public class Resource { //id generator protected static int id_generator = 1; //instance variables protected int id; private int owner; protected Position pos; public Resource(Position pos){ this.owner = 0; this.pos = pos; this.id = id_generator++; } public Resource(int owner, Position pos){ this.owner = owner; this.pos = pos; this.id = id_generator++; } public Position getPosition(){ return pos; } public int getOwner() { return owner; } public void setOwner(int owner) { this.owner = owner; } }