001/*
002 * Copyright (c) 2010 The Regents of the University of California.
003 * All rights reserved.
004 *
005 * 
006 * Permission is hereby granted, without written agreement and without
007 * license or royalty fees, to use, copy, modify, and distribute this
008 * software and its documentation for any purpose, provided that the above
009 * copyright notice and the following two paragraphs appear in all copies
010 * of this software.
011 *
012 * IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY
013 * FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
014 * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF
015 * THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF
016 * SUCH DAMAGE.
017 *
018 * THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
019 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
020 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE
021 * PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE UNIVERSITY OF
022 * CALIFORNIA HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES,
023 * ENHANCEMENTS, OR MODIFICATIONS.
024 *
025 */
026
027package org.kepler.objectmanager.cache;
028
029import ptolemy.kernel.ComponentEntity;
030import ptolemy.kernel.CompositeEntity;
031import ptolemy.kernel.util.IllegalActionException;
032import ptolemy.kernel.util.NameDuplicationException;
033
034/**
035 * Created by IntelliJ IDEA.
036 * User: sean
037 * Date: Mar 8, 2010
038 * Time: 10:58:45 AM
039 */
040
041public class CacheNamedObj extends ComponentEntity {
042        
043        public CacheNamedObj(CompositeEntity actor, String string) {
044                
045                System.out.println("Constructor found");
046        }
047        public CacheNamedObj(CompositeEntity container, CacheObject cacheObject) throws NameDuplicationException, IllegalActionException {
048                super(container, cacheObject.getName());
049                this.cacheObject = cacheObject;
050        }
051        
052        public CacheObject get() {
053                return this.cacheObject;
054        }
055        
056         public String getWorkflowName(){
057            return workflowName;
058         }
059         
060         public void setWorkflowName(String workflowName){
061            this.workflowName = workflowName;
062         }
063          
064         public String getWorkflowLSID(){
065            return workflowLSID;
066         }
067          
068         public void setWorkflowLSID(String workflowLSID){
069            this.workflowLSID = workflowLSID;
070         }
071
072        
073        private CacheObject cacheObject;
074        private String workflowName = null;
075        private String workflowLSID = null;
076 
077
078
079}