Bees v0.5.0 API

bees.core
Class NodeSpec

java.lang.Object
  |
  +--bees.core.Capability
        |
        +--bees.core.NodeSpec
All Implemented Interfaces:
CapabilitySpec
Direct Known Subclasses:
Node

public class NodeSpec
extends Capability
implements CapabilitySpec


Fields inherited from class bees.core.Capability
DELETE_PERMISSION, id, INVALID_ID
 
Constructor Summary
NodeSpec()
           
NodeSpec(java.lang.String name, java.lang.String version)
           
 
Method Summary
 SpecCapabilityFactory getFactory()
           
 java.lang.String getName()
           
 java.lang.String getVersion()
           
 CapabilitySpec specFromBytes(byte[] flattened)
          Initialize this object from the given flattened version of the object.
 byte[] toBytes()
           
 java.lang.String toString()
           
 
Methods inherited from class bees.core.Capability
checkPermission, clear, clonePermission, deleteCapability, equals, fromBytes, fromBytes, revoke, revokedPermission, revokePermission, revokePermissions, valid
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeSpec

public NodeSpec(java.lang.String name,
                java.lang.String version)

NodeSpec

public NodeSpec()
Method Detail

specFromBytes

public CapabilitySpec specFromBytes(byte[] flattened)
Description copied from interface: CapabilitySpec
Initialize this object from the given flattened version of the object.
Specified by:
specFromBytes in interface CapabilitySpec
Following copied from interface: bees.core.CapabilitySpec
Parameters:
flattened - The flattened version of this object.
Returns:
this
Throws:
java.lang.Throwable - if anything goes wrong.

getFactory

public SpecCapabilityFactory getFactory()
Specified by:
getFactory in interface CapabilitySpec

toBytes

public byte[] toBytes()

getName

public java.lang.String getName()
Returns:
The name of this node.

getVersion

public java.lang.String getVersion()
Returns:
The the version of Bees on this node.

toString

public java.lang.String toString()
Overrides:
toString in class Capability
Following copied from class: bees.core.Capability
See Also:
Object.toString()

Bees v0.5.0 API

This documentation is Copyright (C) 2002 The University of Utah. All Rights Reserved. See the individual source files for distribution terms.
Documentation, software, and mailing lists for Bees v0.5.0 can be found at the Janos Project: http://www.cs.utah.edu/flux/janos/