/* * ALMA - Atacama Large Millimiter Array * (c) European Southern Observatory, 2004 * Copyright by ESO (in the framework of the ALMA collaboration), * All rights reserved * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, * MA 02111-1307 USA */ package alma.ACS.MasterComponentImpl; import alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemActions; import alma.acs.genfw.runtime.sm.AcsStateActionException; /** * Subsystem master component for testing purposes, with * log-only implementation of the action methods. * * @author hsommer * created Apr 14, 2004 1:47:40 PM */ public class TestMasterComponentImpl extends MasterComponentImplBase implements AlmaSubsystemActions { /** * */ public TestMasterComponentImpl() { super(); } /** * @see alma.ACS.MasterComponentImpl.MasterComponentImplBase#getActionHandler() */ protected AlmaSubsystemActions getActionHandler() { return this; } /** * @see alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemActions#initSubsysPass1() */ public void initSubsysPass1() { m_logger.info("action method 'initSubsysPass1' called, will sleep for 1 second."); try { Thread.sleep(1000); } catch (InterruptedException e) { e.printStackTrace(); } } /** * @see alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemActions#initSubsysPass2() */ public void initSubsysPass2() { m_logger.info("action method 'initSubsysPass2' called."); } /** * @see alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemActions#reinitSubsystem() */ public void reinitSubsystem() throws AcsStateActionException { m_logger.info("action method 'reinitSubsystem' called."); } /** * @see alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemActions#shutDownSubsysPass1() */ public void shutDownSubsysPass1() { m_logger.info("action method 'shutDownSubsysPass1' called."); } /** * @see alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemActions#shutDownSubsysPass2() */ public void shutDownSubsysPass2() { m_logger.info("action method 'shutDownSubsysPass2' called."); } }