Package org.jcsp.net.cns
Class NameAccessLevel
java.lang.Object
org.jcsp.net.cns.NameAccessLevel
- All Implemented Interfaces:
Serializable
This class allows name spaces to be identified around
AbstractID
objects (currently including
ApplicationID
,
NodeID
,
DomainID
and
GlobalID
). An AbstractID
object can have a single parent
AbstractID
object. This allows a tree-like hierarchy
to be formed which in turn allows a name space hierarchy.
For example, two ApplicationID
objects, A and B, may each
have a parent NodeID
Z. The namespaces created around
A and B will each be a superset of the namespace of Z. Channels registered
in Z's namespace can be resolved in either A's or B's namespace. A channel
registered in A's namespace may neither be resolved in Z's namespace nor
B's.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AbstractID
static final NameAccessLevel
TheNameAccessLevel
for the global namespace. -
Constructor Summary
ConstructorsConstructorDescriptionNameAccessLevel
(AbstractID abstractID) Constructor which takes anAbstractID
to use for identifying the namespace. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compares an object with this object.(package private) AbstractID
Accessor for the underlyingAbstractID
object.int
hashCode()
Returns a hash code for this object obeying the standard rules for a hash code.toString()
Returns a string representation of this object.
-
Field Details
-
abstractID
-
GLOBAL_ACCESS_LEVEL
TheNameAccessLevel
for the global namespace.
-
-
Constructor Details
-
NameAccessLevel
Constructor which takes an
AbstractID
to use for identifying the namespace.
-
-
Method Details
-
equals
Compares an object with this object. -
hashCode
public int hashCode()Returns a hash code for this object obeying the standard rules for a hash code. -
toString
Returns a string representation of this object. -
getLevelAbstractID
AbstractID getLevelAbstractID()Accessor for the underlyingAbstractID
object.- Returns:
- the underlying
AbstractID
.
-