cartago
Class ArtifactDescriptor

java.lang.Object
  extended by cartago.ArtifactDescriptor

public class ArtifactDescriptor
extends java.lang.Object

Artifact descriptor, keeping track of artifact management information

Author:
aricci

Constructor Summary
ArtifactDescriptor(Artifact artifact, AgentId creator, AbstractArtifactAdapter adapter)
           
 
Method Summary
 void addObserver(AgentId id, IEventFilter ev, ICartagoCallback ctx)
           
 AbstractArtifactAdapter getAdapter()
           
 AgentId getAgentCreator()
           
 Artifact getArtifact()
           
 java.lang.String getArtifactType()
           
 boolean isObserved()
           
 boolean isObservedBy(AgentId userId)
           
 void notifyObserver(AgentId id, CartagoEvent ev)
           
 void notifyObservers(CartagoEvent ev)
           
 void removeAllObservers()
           
 boolean removeObserver(AgentId ctxId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArtifactDescriptor

public ArtifactDescriptor(Artifact artifact,
                          AgentId creator,
                          AbstractArtifactAdapter adapter)
Method Detail

getArtifact

public Artifact getArtifact()

getAgentCreator

public AgentId getAgentCreator()

getArtifactType

public java.lang.String getArtifactType()

getAdapter

public AbstractArtifactAdapter getAdapter()

removeAllObservers

public void removeAllObservers()

addObserver

public void addObserver(AgentId id,
                        IEventFilter ev,
                        ICartagoCallback ctx)

removeObserver

public boolean removeObserver(AgentId ctxId)

isObserved

public boolean isObserved()

isObservedBy

public boolean isObservedBy(AgentId userId)

notifyObservers

public void notifyObservers(CartagoEvent ev)

notifyObserver

public void notifyObserver(AgentId id,
                           CartagoEvent ev)


>DEIS - University of Bologna