Class ProMResource<I extends org.processmining.framework.ProMID>

  • All Implemented Interfaces:
    org.deckfour.uitopia.api.model.Resource
    Direct Known Subclasses:
    ProMCResource, ProMPOResource

    public abstract class ProMResource<I extends org.processmining.framework.ProMID>
    extends java.lang.Object
    implements org.deckfour.uitopia.api.model.Resource
    • Field Detail

      • resType

        protected final org.deckfour.uitopia.api.model.ResourceType resType
      • favorite

        protected boolean favorite
      • creationTime

        protected long creationTime
      • lastAccessTime

        protected long lastAccessTime
      • id

        protected final I extends org.processmining.framework.ProMID id
      • view

        protected org.deckfour.uitopia.api.model.View view
      • sourceAction

        protected final org.deckfour.uitopia.api.model.Action sourceAction
      • isDestroyed

        protected boolean isDestroyed
    • Constructor Detail

      • ProMResource

        public ProMResource​(UIContext context,
                            org.deckfour.uitopia.api.model.Action sourceAction,
                            org.deckfour.uitopia.api.model.ResourceType resType,
                            I id,
                            java.util.List<java.util.Collection<ProMPOResource>> parameterValues)
    • Method Detail

      • setParents

        public void setParents​(java.util.Set<ProMPOResource> parents)
      • getCreationTime

        public java.util.Date getCreationTime()
        Specified by:
        getCreationTime in interface org.deckfour.uitopia.api.model.Resource
      • getLastAccessTime

        public java.util.Date getLastAccessTime()
        Specified by:
        getLastAccessTime in interface org.deckfour.uitopia.api.model.Resource
      • setCreationTime

        public void setCreationTime​(long creationTime)
      • setLastAccessTime

        public void setLastAccessTime​(long lastAccessTime)
      • getParents

        public java.util.Collection<ProMPOResource> getParents()
      • getPreview

        public java.awt.Image getPreview​(int maxWidth,
                                         int maxHeight)
        Specified by:
        getPreview in interface org.deckfour.uitopia.api.model.Resource
      • setView

        public void setView​(ProMView view)
      • getSourceAction

        public org.deckfour.uitopia.api.model.Action getSourceAction()
        Specified by:
        getSourceAction in interface org.deckfour.uitopia.api.model.Resource
      • isFavorite

        public boolean isFavorite()
        Specified by:
        isFavorite in interface org.deckfour.uitopia.api.model.Resource
      • setFavorite

        public void setFavorite​(boolean favorite)
        Specified by:
        setFavorite in interface org.deckfour.uitopia.api.model.Resource
      • updateLastAccessTime

        public void updateLastAccessTime()
        Specified by:
        updateLastAccessTime in interface org.deckfour.uitopia.api.model.Resource
      • getType

        public org.deckfour.uitopia.api.model.ResourceType getType()
        Specified by:
        getType in interface org.deckfour.uitopia.api.model.Resource
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getID

        public org.processmining.framework.ProMID getID()
      • isDestroyed

        public boolean isDestroyed()
        Specified by:
        isDestroyed in interface org.deckfour.uitopia.api.model.Resource
      • getInstance

        public abstract java.lang.Object getInstance()