All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface uhr.core.attract.Attribute

public interface Attribute
An Attribute describes a single behavior characteristic of a service. A collection of Attributes describes the behavior of a service offering or need. The advantage to using Attributes is they allow an easy service offering and need matching mechanism. Thus Attributes lie at the heart of the Attractor Pattern used to match host services to client service needs.

An Attribute is immutable.


Method Index

 o equals(Object)
Overrides the method in Object for use in matching.
 o getName()
Returns the attribute name.
 o getValue()
Returns the attribute value.
 o toString()
Overrides the method in Object for use in debugging and such.

Methods

 o getName
 public abstract String getName()
Returns the attribute name. This is semantically descriptive but is really just a unique id per attractor. The name is never null.

Returns:
the attribute name.
 o getValue
 public abstract Object getValue()
Returns the attribute value. If the value equals() the value in another attribute with the same name, the attributes match. A value equalivent to "all" matches all other values. The value may not be null, because nulls introduce too much complexity and null is not necessary.

Returns:
the attribute value, which is never null.
 o equals
 public abstract boolean equals(Object object)
Overrides the method in Object for use in matching.

Parameters:
object - the object to compare to.
Returns:
true if equal or false if not.
Overrides:
equals in class Object
 o toString
 public abstract String toString()
Overrides the method in Object for use in debugging and such.

Returns:
the string representation, which is the name and value.
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index