001package com.pi4j.io.gpio.impl;
002
003/*
004 * #%L
005 * **********************************************************************
006 * ORGANIZATION  :  Pi4J
007 * PROJECT       :  Pi4J :: Java Library (Core)
008 * FILENAME      :  GpioPinShutdownImpl.java  
009 * 
010 * This file is part of the Pi4J project. More information about 
011 * this project can be found here:  http://www.pi4j.com/
012 * **********************************************************************
013 * %%
014 * Copyright (C) 2012 - 2013 Pi4J
015 * %%
016 * Licensed under the Apache License, Version 2.0 (the "License");
017 * you may not use this file except in compliance with the License.
018 * You may obtain a copy of the License at
019 * 
020 *      http://www.apache.org/licenses/LICENSE-2.0
021 * 
022 * Unless required by applicable law or agreed to in writing, software
023 * distributed under the License is distributed on an "AS IS" BASIS,
024 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
025 * See the License for the specific language governing permissions and
026 * limitations under the License.
027 * #L%
028 */
029
030import com.pi4j.io.gpio.PinMode;
031import com.pi4j.io.gpio.PinPullResistance;
032import com.pi4j.io.gpio.GpioPinShutdown;
033import com.pi4j.io.gpio.PinState;
034
035public class GpioPinShutdownImpl implements GpioPinShutdown {
036
037    Boolean unexport = null;
038    PinMode mode = null;
039    PinPullResistance resistance = null;
040    PinState state = null;
041
042    @Override
043    public void setUnexport(Boolean unexport) {
044        this.unexport = unexport;
045    }
046
047    @Override
048    public Boolean getUnexport() {
049        return unexport;
050    }
051
052    @Override
053    public void setMode(PinMode mode) {
054        this.mode = mode;
055    }
056
057    @Override
058    public PinMode getMode() {
059        return mode;
060    }
061
062    @Override
063    public void setPullResistor(PinPullResistance resistance) {
064        this.resistance = resistance;
065    }
066
067    @Override
068    public PinPullResistance getPullResistor() {
069        return resistance;
070    }
071
072    @Override
073    public void setState(PinState state) {
074        this.state = state;
075    }
076
077    @Override
078    public PinState getState() {
079        return state;
080    }
081}