All Packages Class Hierarchy This Package Previous Next Index
Class magician.Node.Resource
java.lang.Object
|
+----magician.Node.Resource
- public class Resource
- extends Object
class Resource represents an active node resources which may be utilized
by a Smart Packet
-
creationTime
- Creation Time
-
size
- Size (in resource dependent unit)
-
spOwner
- Who creates me?
-
Resource()
- For small states, ResourceMgr don't care who the owner is
-
Resource(KUSmartPacketV2)
- Creates a new Resource
-
age()
- Returns the age of this resource (in milliseconds)
-
getOwner()
- Returns the owner of this resource
-
getSize()
- Return the size of the object
spOwner
protected KUSmartPacketV2 spOwner
- Who creates me?
creationTime
protected static final long creationTime
- Creation Time
size
protected long size
- Size (in resource dependent unit)
Resource
public Resource(KUSmartPacketV2 sp)
- Creates a new Resource
- Parameters:
- sp - the Smartpacket that owns this
Resource
public Resource()
- For small states, ResourceMgr don't care who the owner is
getOwner
public KUSmartPacketV2 getOwner()
- Returns the owner of this resource
- Returns:
- Smartpacket that is the owner
age
public long age()
- Returns the age of this resource (in milliseconds)
- Returns:
- time since creation
getSize
public long getSize()
- Return the size of the object
- Returns:
- size in bytes
All Packages Class Hierarchy This Package Previous Next Index