org.pasoa.common.structure
Class View

java.lang.Object
  extended by org.pasoa.common.structure.View
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InferredView

public class View
extends Object
implements Serializable

Represents a View of an interaction by an actor.

Author:
pgroth
See Also:
Serialized Form

Constructor Summary
View(List interactionPAssertions, List actorStatePAssertions, List relationships, int numberOfExpectedMsgs, Element asserter)
           
View(List interactionPAssertions, List actorStatePAssertions, List relationships, int numberOfExpectedPAssertions, Element asserter, Link viewLink)
          Construct a View
 
Method Summary
 List getActorStatePAssertions()
           
 Element getAsserter()
           
 List getInteractionPAssertions()
           
 int getNumberOfExpectedPAssertions()
          If the method returns -1, the number of expected assertions has not yet been set.
 List getRelationships()
           
 Link getViewLink()
           
 void setNumberOfExpectedPAssertions(int total)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

View

public View(List interactionPAssertions,
            List actorStatePAssertions,
            List relationships,
            int numberOfExpectedPAssertions,
            Element asserter,
            Link viewLink)
Construct a View

Parameters:
interactionPAssertions - a list of interaction p-assertions
actorStatePAssertions - a list of actor state p-assertions
relationships - a list relationship p-assertions
numberOfExpectedPAssertions - the number of expected p-assertions for this view
asserter - the asserter of the assertions for the view
viewLink - a reference to the provenance store that contains the opposite view of the interaction (optional)

View

public View(List interactionPAssertions,
            List actorStatePAssertions,
            List relationships,
            int numberOfExpectedMsgs,
            Element asserter)
Method Detail

getActorStatePAssertions

public List getActorStatePAssertions()

getInteractionPAssertions

public List getInteractionPAssertions()

getRelationships

public List getRelationships()

getNumberOfExpectedPAssertions

public int getNumberOfExpectedPAssertions()
If the method returns -1, the number of expected assertions has not yet been set.

Returns:

getAsserter

public Element getAsserter()

getViewLink

public Link getViewLink()

setNumberOfExpectedPAssertions

public void setNumberOfExpectedPAssertions(int total)