org.cougaar.multicast
Class AttributeBasedAddress

java.lang.Object
  extended by org.cougaar.core.mts.MessageAddress
      extended by org.cougaar.multicast.AttributeBasedAddress
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable

public class AttributeBasedAddress
extends MessageAddress
implements java.io.Externalizable

Attribute Based Messaging support class, used in Blackboard for determining those directive destinations not specified by a MessageAddress

See Also:
Serialized Form

Field Summary
protected  java.lang.String myAttributeType
           
protected  java.lang.String myAttributeValue
           
protected  java.lang.String myCommunityName
           
 
Fields inherited from class org.cougaar.core.mts.MessageAddress
MULTICAST_COMMUNITY, MULTICAST_LOCAL, MULTICAST_SOCIETY, NULL_SYNC
 
Constructor Summary
AttributeBasedAddress()
           
 
Method Summary
static AttributeBasedAddress getAttributeBasedAddress(java.lang.String commName, java.lang.String attrType, java.lang.String attrValue)
           
static MessageAddress getAttributeBasedAddress(java.lang.String commName, java.lang.String attrType, java.lang.String attrValue, MessageAttributes mas)
           
 java.lang.String getAttributeName()
          Deprecated. Use getAttributeType instead.
 java.lang.String getAttributeType()
           
 java.lang.String getAttributeValue()
           
 java.lang.String getCommunityName()
           
 boolean isPersistable()
           
 void readExternal(java.io.ObjectInput in)
           
 java.lang.String toAddress()
           
 java.lang.String toString()
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class org.cougaar.core.mts.MessageAddress
equals, getAddress, getMessageAddress, getMessageAddress, getMessageAddress, getMessageAddress, getMessageAddress, getMessageAddress, getMessageAttributes, getPrimary, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

myCommunityName

protected transient java.lang.String myCommunityName

myAttributeType

protected transient java.lang.String myAttributeType

myAttributeValue

protected transient java.lang.String myAttributeValue
Constructor Detail

AttributeBasedAddress

public AttributeBasedAddress()
Method Detail

getCommunityName

public java.lang.String getCommunityName()

toAddress

public java.lang.String toAddress()
Specified by:
toAddress in class MessageAddress
Returns:
a string representation of this address, which may not be human readable or parsable.

toString

public java.lang.String toString()
Overrides:
toString in class MessageAddress
See Also:
MessageAddress.toAddress()

getAttributeName

public java.lang.String getAttributeName()
Deprecated. Use getAttributeType instead.


getAttributeType

public java.lang.String getAttributeType()

getAttributeValue

public java.lang.String getAttributeValue()

isPersistable

public boolean isPersistable()

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.lang.ClassNotFoundException,
                         java.io.IOException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.lang.ClassNotFoundException
java.io.IOException

getAttributeBasedAddress

public static AttributeBasedAddress getAttributeBasedAddress(java.lang.String commName,
                                                             java.lang.String attrType,
                                                             java.lang.String attrValue)

getAttributeBasedAddress

public static MessageAddress getAttributeBasedAddress(java.lang.String commName,
                                                      java.lang.String attrType,
                                                      java.lang.String attrValue,
                                                      MessageAttributes mas)