org.pasoa.common.structure
Class View
java.lang.Object
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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-assertionsactorStatePAssertions
- a list of actor state p-assertionsrelationships
- a list relationship p-assertionsnumberOfExpectedPAssertions
- the number of expected p-assertions
for this viewasserter
- the asserter of the assertions for the viewviewLink
- 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)
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)