Class ResourceUpdate
- java.lang.Object
-
- org.palladiosimulator.pcmtx.pcmtxviews.resource.ResourceUpdate
-
public class ResourceUpdate extends Object
This class represents an update of anIResource
. It contains information about the kind of the update and the affectedIResource
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ResourceUpdate.UpdateKind
The kind of aResourceUpdate
.
-
Constructor Summary
Constructors Constructor Description ResourceUpdate(URI uri, ResourceUpdate.UpdateKind kind)
Creates a newResourceUpdate
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceUpdate.UpdateKind
getKind()
Returns theResourceUpdate.UpdateKind
of thisResourceUpdate
.URI
getURI()
boolean
isPcmtxResourceUpdate()
Returnstrue
if thisResourceUpdate
affects aIResource
containing a Pcmtx model.boolean
isResourcetypeResourceUpdate()
Returnstrue
if thisResourceUpdate
affects aIResource
containing a Resourcetype model.
-
-
-
Constructor Detail
-
ResourceUpdate
public ResourceUpdate(URI uri, ResourceUpdate.UpdateKind kind)
Creates a newResourceUpdate
. The givenURI
specifies theiResource
affected by this update and the givenResourceUpdate.UpdateKind
specifies the kind of theResourceUpdate
.- Parameters:
uri
- theURI
of the updatedIResource
kind
- theResourceUpdate.UpdateKind
of theResourceUpdate
-
-
Method Detail
-
isResourcetypeResourceUpdate
public boolean isResourcetypeResourceUpdate()
Returnstrue
if thisResourceUpdate
affects aIResource
containing a Resourcetype model.- Returns:
true
if thisResourceUpdate
affects aIResource
containing a Resourcetype model,false
otherwise.
-
isPcmtxResourceUpdate
public boolean isPcmtxResourceUpdate()
Returnstrue
if thisResourceUpdate
affects aIResource
containing a Pcmtx model.- Returns:
true
if thisResourceUpdate
affects aIResource
containing a Pcmtx model,false
otherwise.
-
getKind
public ResourceUpdate.UpdateKind getKind()
Returns theResourceUpdate.UpdateKind
of thisResourceUpdate
.- Returns:
- the
ResourceUpdate.UpdateKind
of thisResourceUpdate
- See Also:
ResourceUpdate.UpdateKind
-
-