Uses of Class
planet.commonapi.Id

Packages that use Id
planet.badchord   
planet.chord   
planet.chord.message   
planet.commonapi   
planet.commonapi.factory   
planet.generic.commonapi   
planet.generic.commonapi.factory   
planet.generic.commonapi.message   
planet.scribe   
planet.scribe.messaging   
planet.simulate   
planet.symphony   
planet.symphony.listeners   
planet.symphony.messages   
planet.test.broadcast   
planet.test.dht   
planet.test.simpledht   
 

Uses of Id in planet.badchord
 

Constructors in planet.badchord with parameters of type Id
BadChordNode(Id id)
          Constructor, create a new BadChordNode instance with this node Id
 

Uses of Id in planet.chord
 

Subclasses of Id in planet.chord
 class ChordId
           
 

Fields in planet.chord declared as Id
protected  Id ChordNode.MAX
           
protected  Id[] ChordNode.start
           
 Id ChordNode.deux
           
protected static Id ChordId.MAX
          Inform the maximum value for this ChordId using the number of bits bitsKey.
 

Methods in planet.chord that return Id
 Id ChordId.add(Id offset)
          Returns an Id corresponding to this Id plus a given offset
 Id ChordId.subtractWithCarry(Id offset)
           
 Id ChordId.subtract(Id offset)
           
 Id ChordId.shift(int cnt, int fill)
          Shift operator. shift(-1,0) multiplies value of this by two, shift(1,0) divides by 2
 Id ChordId.shift(int cnt, int fill, boolean roundUp)
          Shift operator. shift(-1,0) multiplies value of this by two, shift(1,0) divides by 2
static Id ChordId.getMaximum()
          This method returns the maximum value for a ChordId that is possible to build, according the number of bits for key actually in use.
 

Methods in planet.chord with parameters of type Id
protected  NodeHandle ChordNode.closest_preceding_finger(Id id)
          Finds the closest preceding finger of a node
 void ChordNode.join(Id n1Id)
          The node joins in the network
 void ChordNode.lookup(Id id)
          Given a key, it generates the message and listener to obtain the owner of this one.
 java.util.Vector ChordNode.localLookup(Id key, int max, boolean safe)
          Returns a list of nodes that can be used as next hops on a route towards key.
 int ChordNode.firstLocalLookup(Id key)
          Detects de first position that key is in range of some position of finger table.
 boolean ChordNode.range(NodeHandle node, Id rank, Id leftKey, Id rightKey)
           
 java.util.Vector ChordNode.replicaSet(Id key, int maxRank)
           
 Id ChordId.add(Id offset)
          Returns an Id corresponding to this Id plus a given offset
 Id ChordId.subtractWithCarry(Id offset)
           
 Id ChordId.subtract(Id offset)
           
 boolean ChordId.between(Id ccw, Id cw)
           
 boolean ChordId.clockwise(Id nid)
          Checks to see if the Id nid is clockwise or counterclockwise from this, on the ring.
 

Constructors in planet.chord with parameters of type Id
ChordNode(Id id)
          Constructor, create a new BadChordNode instance with this node Id
ChordNode.LookupListener(ChordNode node, Id key)
           
 

Uses of Id in planet.chord.message
 

Methods in planet.chord.message that return Id
 Id IdMessage.getNode()
           
 

Methods in planet.chord.message with parameters of type Id
 void IdMessage.setNode(Id id)
           
 

Constructors in planet.chord.message with parameters of type Id
IdMessage(Id id)
          Shows the Id to send with this message.
 

Uses of Id in planet.commonapi
 

Methods in planet.commonapi that return Id
abstract  Id NodeHandle.getId()
          Returns this node's id.
 Id Node.getId()
          Returns the Id of this node
abstract  Id Id.add(Id offset)
          Returns an Id corresponding to this Id plus a given distance
abstract  Id Id.subtract(Id offset)
          Returns an Id corresponding to this Id minus a given distance
abstract  Id Id.shift(int cnt, int fill)
          Shift operator. shift(-1,0) multiplies value of this by two, shift(1,0) divides by 2
static Id Id.getMaximum()
          This method returns the maximum value for an Id that is possible to build.
 Id EndPoint.getId()
          Returns this node's id, which is its identifier in the namespace.
 

Methods in planet.commonapi with parameters of type Id
 void Node.join(Id nodeId)
          This Node joins another node identified by nodeId.
 java.util.Vector Node.localLookup(Id key, int max, boolean safe)
          Returns a list of nodes that can be used as next hops on a route towards key.
 java.util.Vector Node.replicaSet(Id key, int maxRank)
          Returns an ordered set of nodes on which replicas of the object with this key can be stored.
 boolean Node.range(NodeHandle node, Id rank, Id leftKey, Id rightKey)
          This operation provides information about ranges of keys for which the node is currently a root.
 void Network.joinNode(Node node, Id bootstrap)
          Network joins a node with specified bootstrap.
 int Network.joinNodes(int size, Id[] bootstrap)
          Generates size new Nodes joins them by any of the bootstraps.
 void Network.leaveNodes(Id[] nodes)
          Leave the ring the nodes which his Id appears in the array nodes.
 void Network.failNodes(Id[] nodes)
          nodes shows all nodes Id that have failed.
 int Network.registerApplication(Id[] nodes)
          Register to all Nodes whose Id appears in array Ids of nodes the Application specified at properties file.
 boolean Network.existNodeWithId(Id id)
          Inform if exist on the network one node with Id id.
 int Network.getProximity(Id nodeA, Id nodeB)
          Evaluates the proximity between the two nodes.
abstract  boolean Id.between(Id ccw, Id cw)
          Checks if this Id is between two given ids ccw (inclusive) and cw (exclusive) on the circle
 boolean Id.Ebetween(Id init, Id end)
          Checks if this Id is in interval [init,end)
 boolean Id.betweenE(Id init, Id end)
          Checks if this Id is in interval (init,end]
abstract  boolean Id.clockwise(Id nid)
          Checks to see if the Id nid is clockwise or counterclockwise from this, on the ring.
abstract  Id Id.add(Id offset)
          Returns an Id corresponding to this Id plus a given distance
abstract  Id Id.subtract(Id offset)
          Returns an Id corresponding to this Id minus a given distance
 void Id.setValue(Id newValue)
          Sets the new value with Id newValue.
 void EndPoint.route(Id id, Message message, NodeHandle hint)
          This method makes an attempt to route the message to the root of the given id.
 void EndPoint.broadcast(Id id, Message message)
          Sends a broadcast message to all nodes in the network.
 java.util.Vector EndPoint.localLookup(Id key, int max, boolean safe)
          Returns a list of nodes that can be used as next hops on a route towards key.
 java.util.Vector EndPoint.replicaSet(Id key, int maxRank)
          Returns an ordered set of nodes on which replicas of the object with this key can be stored.
 boolean EndPoint.range(NodeHandle node, Id rank, Id leftKey, Id rightkey)
          This operation provides information about ranges of keys for which the node is currently a root.
 void Application.deliver(Id id, Message message)
          This method is called on the application at the destination node for the given id.
 

Uses of Id in planet.commonapi.factory
 

Methods in planet.commonapi.factory that return Id
 Id IdFactory.buildId()
          Builds an Id with the actual configuration of network topology and size.
 Id IdFactory.buildId(int material)
          Builds a protocol-specific Id given the source data.
 Id IdFactory.buildId(double material)
          Builds a protocol-specific Id given the source data.
 Id IdFactory.buildId(byte[] material)
          Builds a protocol-specific Id given the source data.
 Id IdFactory.buildId(int[] material)
          Builds a protocol-specific Id given the source data as int[].
 Id IdFactory.buildKey(java.lang.String materialToHash)
          Builds a protocol-specific Id by using the given string as source data for a hash function (like SHA-1).
 Id IdFactory.buildId(java.lang.String material)
          Generate an Id from the String as its internal value.
 Id IdFactory.buildId(java.math.BigInteger material)
          Generate an Id from a BigInteger, that includes its internal value.
 

Methods in planet.commonapi.factory with parameters of type Id
 NodeHandle NodeHandleFactory.buildNodeHandle(Id nodeId, boolean alive)
          Builds a NodeHandle using the default NodeHandle class.
 Node NodeFactory.buildNode(Id id)
          Builds a Node using the Id that appears in parameter, using the default Class for him.
 

Uses of Id in planet.generic.commonapi
 

Fields in planet.generic.commonapi declared as Id
protected  Id NodeImpl.id
           
protected  Id NetworkNodeImpl.id
           
 

Methods in planet.generic.commonapi that return Id
 Id NodeImpl.getId()
          Returns the id of the node *
 Id NodeHandleImpl.getId()
          Gets the Id of the related node
 Id NetworkNodeImpl.getId()
          Returns the id of the node *
 Id EndPointImpl.getId()
          Returns the identification of the related Node
 

Methods in planet.generic.commonapi with parameters of type Id
abstract  void NodeImpl.join(Id nodeId)
          The node joins in the network
abstract  void NodeImpl.lookup(Id key)
          Lookup of a key
abstract  void NetworkNodeImpl.join(Id nodeId)
          The node joins in the network
abstract  void NetworkNodeImpl.lookup(Id key)
          Lookup of a key
 void NetworkImpl.joinNode(Node node, Id bootstrap)
          Adds node to the network, using the node with Id bootstrap to enter it.
 int NetworkImpl.joinNodes(int size, Id[] bootstrap)
          Add size nodes to the actual network.
 void NetworkImpl.leaveNodes(Id[] nodes)
          Leave theese nodes for the network.
 void NetworkImpl.failNodes(Id[] nodes)
          Runs the stabilization process after each fail node.
 int NetworkImpl.registerApplication(Id[] nodes)
          Register the Application specified at properties file to the specified nodes by theirs Ids.
 boolean NetworkImpl.existNodeWithId(Id id)
          Inform if exist on the network one node with Id id.
 int NetworkImpl.getProximity(Id nodeA, Id nodeB)
          Always returns 1 (one).
 void EndPointImpl.route(Id id, Message message, NodeHandle hint)
          This method makes an attempt to route the message to the root of the given id.
 void EndPointImpl.broadcast(Id key, Message message)
          Sends a broadcast message to the network.
 java.util.Vector EndPointImpl.replicaSet(Id key, int maxRank)
           
 java.util.Vector EndPointImpl.localLookup(Id key, int max, boolean safe)
          Returns a list of nodes that can be used as next hops on a route towards key.
 boolean EndPointImpl.range(NodeHandle node, Id rank, Id leftKey, Id rightKey)
           
 

Constructors in planet.generic.commonapi with parameters of type Id
NodeImpl(Id id)
          Constructor, create a new Node instance with node Id
NodeHandleImpl(Id nodeId, boolean alive)
          Builds a new NodeHandle for a Node, only identify its Id and sets its alive flag.
NetworkNodeImpl(Id id)
          Constructor, create a new Node instance with node Id
 

Uses of Id in planet.generic.commonapi.factory
 

Fields in planet.generic.commonapi.factory declared as Id
protected  Id IdFactoryImpl.actualValue
          Id just generated.
protected  Id IdFactoryImpl.chunkValue
          Actual value to add to the actualValue to obtain the next Id.
 

Methods in planet.generic.commonapi.factory that return Id
 Id IdFactoryImpl.buildId()
          Builds an Id with the actual configuration of network topology and size.
protected  Id IdFactoryImpl.buildRandomId()
          Builds a random Id using the BigInteger constructor of the target Id.
 Id IdFactoryImpl.buildId(double material)
          Builds an Id with the double parameter as its internal value.
 Id IdFactoryImpl.buildId(int material)
          Builds an Id with the int parameter as its internal value.
 Id IdFactoryImpl.buildId(byte[] material)
          Generate an Id from material in byte[] format as its internal value.
 Id IdFactoryImpl.buildId(int[] material)
          Generate an Id from material in int[] format, as its internal value.
 Id IdFactoryImpl.buildKey(java.lang.String string)
          Generate an Id from a String with SHA-1 hash function.
 Id IdFactoryImpl.buildId(java.lang.String material)
          Generate an Id from a String that contains its internal value.
 Id IdFactoryImpl.buildId(java.math.BigInteger bigNumber)
          Generate an Id from the BigInteger as its internal value.
protected  Id IdFactoryDoubleImpl.buildRandomId()
          Builds a random Id using the double constructor of the target Id.
 Id IdFactoryDoubleImpl.buildId(double material)
          Builds an Id with the double parameter as its internal value.
 Id IdFactoryDoubleImpl.buildId(int material)
          Builds an Id with the int parameter as its internal value.
 Id IdFactoryDoubleImpl.buildId(byte[] material)
          Generate an Id from material in byte[] format as its internal value.
 Id IdFactoryDoubleImpl.buildId(int[] material)
          Generate an Id from material in int[] format, as its internal value.
 Id IdFactoryDoubleImpl.buildId(java.math.BigInteger bigNumber)
          Generate an Id from the BigInteger as its internal value.
static Id GenericFactory.buildId()
           
static Id GenericFactory.buildId(int material)
           
static Id GenericFactory.buildId(double material)
           
static Id GenericFactory.buildId(byte[] material)
           
static Id GenericFactory.buildId(int[] material)
           
static Id GenericFactory.buildKey(java.lang.String string)
           
static Id GenericFactory.buildId(java.lang.String string)
           
static Id GenericFactory.buildId(java.math.BigInteger bigNumber)
           
 

Methods in planet.generic.commonapi.factory with parameters of type Id
 NodeHandle NodeHandleFactoryImpl.buildNodeHandle(Id id, boolean alive)
          Builds a NodeHandle with the actual implementation class of NodeHandle and specifieds id and alive flag.
 Node NodeFactoryImpl.buildNode(Id id)
          Builds a node with the actual implementation class of NodeImpl and the specified id.
static Node GenericFactory.buildNode(Id id)
           
static NodeHandle GenericFactory.buildNodeHandle(Id nodeId, boolean alive)
          Builds a new NodeHandle for specifieds Node Id and alive flag.
 

Uses of Id in planet.generic.commonapi.message
 

Methods in planet.generic.commonapi.message that return Id
 Id DataMessage.getMessageKey()
           
 

Methods in planet.generic.commonapi.message with parameters of type Id
 void DataMessage.setMessageKey(Id messageKey)
           
 

Constructors in planet.generic.commonapi.message with parameters of type Id
DataMessage(Id key, Message msg)
           
 

Uses of Id in planet.scribe
 

Fields in planet.scribe declared as Id
protected  Id Topic.id
          The Id to which this topic is mapped
protected  Id[] ScribeImpl.TopicManager.pathToRoot
          The current path to the root for this node
 

Methods in planet.scribe that return Id
 Id Topic.getId()
          Returns the Id to which this topic is mapped
static Id Topic.getId(IdFactory factory, java.lang.String name)
          Returns the Id to which the string is mapped
 Id ScribeImpl.getNodeId()
          Returns the Id of the local node
 Id[] ScribeImpl.TopicManager.getPathToRoot()
          Gets the PathToRoot attribute of the TopicManager object
 

Methods in planet.scribe with parameters of type Id
 void ScribeImpl.deliver(Id id, Message message)
          This method is called on the application at the destination node for the given id.
 void ScribeImpl.TopicManager.setPathToRoot(Id[] pathToRoot)
          Sets the PathToRoot attribute of the TopicManager object
 

Constructors in planet.scribe with parameters of type Id
Topic(Id id)
          Constructor which takes an Id for this topic
 

Uses of Id in planet.scribe.messaging
 

Fields in planet.scribe.messaging declared as Id
protected  Id SubscribeMessage.previousParent
          The previous parent
protected  Id[] SubscribeAckMessage.pathToRoot
          The contained path to the root
 

Methods in planet.scribe.messaging that return Id
 Id SubscribeMessage.getPreviousParent()
          Returns the node who is trying to subscribe
 Id[] SubscribeAckMessage.getPathToRoot()
          Returns the path to the root for the node receiving this message
 Id ReplicaSetMessage.getMessageKey()
           
 

Methods in planet.scribe.messaging with parameters of type Id
 void ReplicaSetMessage.setMessageKey(Id messageKey)
           
 

Constructors in planet.scribe.messaging with parameters of type Id
SubscribeMessage(NodeHandle source, Topic topic, Id previousParent, int id, ScribeContent content)
          Constructor which takes a unique integer Id
SubscribeAckMessage(NodeHandle source, Topic topic, Id[] pathToRoot, int id)
          Constructor which takes a unique integer Id
ReplicaSetMessage(Id sourceId, int maxRank)
          Builds the message to inform the maximum number of replica set that is required.
ReplicaSetMessage(Id sourceId, java.util.Vector replicaSet)
          Builds the message to inform the required replica set.
 

Uses of Id in planet.simulate
 

Methods in planet.simulate that return Id
static Id Results.getLookup(Id key)
           
 Id IEvent.getFrom()
           
 Id IEvent.getTo()
           
static Id[] GenEvents.genRandomIds(Id min, int num, int k)
           
 Id Event.getFrom()
           
 Id Event.getTo()
           
 

Methods in planet.simulate with parameters of type Id
 void Simulator.addNode(Node node, Id bootstrap)
          Joins a new node to the simulated network.
 Node Simulator.addNode(Id id, Id bootstrap)
          Create and joins a new node to the simulated network.
static void Results.numMessagesTime(Id id, int step, int num, java.lang.String type)
           
static void Results.updateHopsMsg(Id source, java.lang.String key_msg)
           
static void Results.addLookup(Id key, Id own)
           
static Id Results.getLookup(Id key)
           
 void NetworkSimulator.addNode(Node node, Id bootstrap)
          Joins a new node to the simulated network.
 void NetworkSimulator.addNode(Id id, Id bootstrap)
          Create and joins a new node to the simulated network.
static void Logger.logSend(Id id, RouteMessage msg, int lvl)
          Logs a sent RouteMessage.
static void Logger.logReceive(Id id, RouteMessage msg, int lvl)
          Logs a received RouteMessage
static Id[] GenEvents.genRandomIds(Id min, int num, int k)
           
 

Constructors in planet.simulate with parameters of type Id
SampleGenerator(Id id, Id target, int type, int times)
           
Event(Id from, Id to, int type, int times)
           
Event(Id from, Id to, int type, int times, int time)
           
 

Uses of Id in planet.symphony
 

Subclasses of Id in planet.symphony
 class SymphonyId
          This Id is backed up a double value.
 

Fields in planet.symphony declared as Id
protected static Id SymphonyId.MAX
          Inform the maximum value for this SymphonyId (1.0).
 

Methods in planet.symphony that return Id
 Id SymphonyId.add(Id offset)
           
 Id SymphonyId.subtract(Id offset)
           
 Id SymphonyId.shift(int cnt, int fill)
           
static Id SymphonyId.getMaximum()
          This method returns the maximum value for a SymphonyId that is possible to build.
 

Methods in planet.symphony with parameters of type Id
 void SymphonyNode.join(Id bsId)
           
 void SymphonyNode.lookup(Id key)
           
 java.util.Vector SymphonyNode.localLookup(Id key, int max, boolean safe)
           
 boolean SymphonyNode.range(NodeHandle node, Id rank, Id leftKey, Id rightKey)
           
 java.util.Vector SymphonyNode.replicaSet(Id key, int maxRank)
           
 boolean SymphonyId.between(Id ccw, Id cw)
           
 boolean SymphonyId.clockwise(Id nid)
           
 Id SymphonyId.add(Id offset)
           
 Id SymphonyId.subtract(Id offset)
           
 

Constructors in planet.symphony with parameters of type Id
SymphonyNode(Id id)
           
SuccSetComparator(Id rootId)
           
PredSetComparator(Id rootId)
           
 

Uses of Id in planet.symphony.listeners
 

Constructors in planet.symphony.listeners with parameters of type Id
LookupListener(Id nodeId, Id key)
           
 

Uses of Id in planet.symphony.messages
 

Methods in planet.symphony.messages that return Id
 Id SetSuccMessage.getSuccId()
           
 Id SetPredMessage.getPredId()
           
 

Methods in planet.symphony.messages with parameters of type Id
 void SetSuccMessage.setSuccId(Id succId)
           
 void SetPredMessage.setPredId(Id predId)
           
 

Constructors in planet.symphony.messages with parameters of type Id
SetSuccMessage(Id succId)
           
SetPredMessage(Id predId)
           
 

Uses of Id in planet.test.broadcast
 

Methods in planet.test.broadcast that return Id
 Id DHTPeerTestMessage.getSourceNodeId()
          Gets Id of source Node, who sends this message.
 

Methods in planet.test.broadcast with parameters of type Id
 void DHTPeerTestMessage.setSourceNodeId(Id id)
          Sets a new Id of source Node, who sends (re-send) this message.
 void DHTApplication.deliver(Id id, Message message)
          This method is called on the application at the destination node for the given id.
 

Constructors in planet.test.broadcast with parameters of type Id
DHTPeerTestMessage(Id sourceNodeId, java.lang.String data)
          Constructor for this Message.
 

Uses of Id in planet.test.dht
 

Methods in planet.test.dht with parameters of type Id
 void ChordDHTApplication.deliver(Id id, Message message)
          This method is called on the application at the destination node for the given id.
 

Uses of Id in planet.test.simpledht
 

Methods in planet.test.simpledht with parameters of type Id
 void DHTApplication.deliver(Id id, Message message)
          This method is called on the application at the destination node for the given id.