001package jmri.jmrit.logixng.tools.debugger;
002
003import java.util.Set;
004
005import jmri.JmriException;
006import jmri.NamedBean;
007import jmri.jmrit.logixng.BaseManager;
008import jmri.jmrit.logixng.MaleDigitalActionSocket;
009
010/**
011 *
012 * @author daniel
013 */
014public class DebuggerMaleDigitalActionSocket extends AbstractDebuggerMaleSocket implements MaleDigitalActionSocket {
015    
016    public DebuggerMaleDigitalActionSocket(BaseManager<MaleDigitalActionSocket> manager, MaleDigitalActionSocket maleSocket) {
017        super(manager, maleSocket);
018    }
019
020    /** {@inheritDoc} */
021    @Override
022    public String getBeforeInfo() {
023        return Bundle.getMessage("DigitalAction_InfoBefore");
024    }
025    
026    /** {@inheritDoc} */
027    @Override
028    public String getAfterInfo() {
029        return Bundle.getMessage("DigitalAction_InfoAfter");
030    }
031    
032    @Override
033    public void execute() throws JmriException {
034        before();
035        ((MaleDigitalActionSocket)getObject()).execute();
036        after();
037    }
038
039    @Override
040    public void setState(int s) throws JmriException {
041        ((MaleDigitalActionSocket)getObject()).setState(s);
042    }
043
044    @Override
045    public int getState() {
046        return ((MaleDigitalActionSocket)getObject()).getState();
047    }
048
049    @Override
050    public String describeState(int state) {
051        return ((MaleDigitalActionSocket)getObject()).describeState(state);
052    }
053
054    @Override
055    public void setProperty(String key, Object value) {
056        ((MaleDigitalActionSocket)getObject()).setProperty(key, value);
057    }
058
059    @Override
060    public Object getProperty(String key) {
061        return ((MaleDigitalActionSocket)getObject()).getProperty(key);
062    }
063
064    @Override
065    public void removeProperty(String key) {
066        ((MaleDigitalActionSocket)getObject()).removeProperty(key);
067    }
068
069    @Override
070    public Set<String> getPropertyKeys() {
071        return ((MaleDigitalActionSocket)getObject()).getPropertyKeys();
072    }
073
074    @Override
075    public String getBeanType() {
076        return ((MaleDigitalActionSocket)getObject()).getBeanType();
077    }
078
079    @Override
080    public int compareSystemNameSuffix(String suffix1, String suffix2, NamedBean n2) {
081        return ((MaleDigitalActionSocket)getObject()).compareSystemNameSuffix(suffix1, suffix2, n2);
082    }
083    
084}