Prism.framework
Class Peer

java.lang.Object
  |
  +--Prism.framework.Message
        |
        +--Prism.framework.Peer
All Implemented Interfaces:
MessageConstants

public class Peer
extends Message

Peers are used to send messages from a component to another component on the side it in the Prism architectural configuration. Peers are a concrete form of using messages.

Version:
0.1
Author:
Marija Mikic-Rakic

Fields inherited from class Prism.framework.Message
id, level, name, parameterName, parameterValue, SEGMENT_LENGTH, sourceId, targetId, type, via
 
Fields inherited from interface Prism.framework.MessageConstants
APP_DATA, ARCH_MODEL, COMP_CONTENT, NOTIFICATION, PEER, REQUEST
 
Constructor Summary
Peer(java.lang.String str)
          Creates a peer and stores the name.
Peer(java.lang.String str, Address a)
          Creates a peer and stores the name.
 
Methods inherited from class Prism.framework.Message
addParameter, getParameter, hasParameter, removeParameter, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Peer

public Peer(java.lang.String str)
Creates a peer and stores the name.
Parameters:
str - String name of the peer Note that it is very important to tag each peer message with the ID of the sender, so that we know who was the originator of the message.

Peer

public Peer(java.lang.String str,
            Address a)
Creates a peer and stores the name.
Parameters:
str - String name of the peer
a - Address of target