001: /**********************************************************************************
002: * $URL$
003: * $Id$
004: ***********************************************************************************
005: *
006: * Copyright (c) 2005, 2006 The Sakai Foundation.
007: *
008: * Licensed under the Educational Community License, Version 1.0 (the"License");
009: * you may not use this file except in compliance with the License.
010: * You may obtain a copy of the License at
011: *
012: * http://www.opensource.org/licenses/ecl1.php
013: *
014: * Unless required by applicable law or agreed to in writing, software
015: * distributed under the License is distributed on an "AS IS" BASIS,
016: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
017: * See the License for the specific language governing permissions and
018: * limitations under the License.
019: *
020: **********************************************************************************/package org.sakaiproject.tool.assessment.audio;
021:
022: import java.io.Serializable;
023: import java.util.Vector;
024: import javax.sound.sampled.AudioInputStream;
025:
026: public class AudioSamplingData implements Serializable {
027: private String errStr;
028: private String fileName;
029: private double seconds;
030: private double duration;
031: private Runnable capture;
032: private Thread captureThread;
033: private java.util.Vector line;
034: private javax.sound.sampled.AudioInputStream audioInputStream;
035: private double maxSeconds;
036:
037: public String getErrStr() {
038: return errStr;
039: }
040:
041: public void setErrStr(String errStr) {
042: this .errStr = errStr;
043: }
044:
045: public String getFileName() {
046: return fileName;
047: }
048:
049: public void setFileName(String fileName) {
050: this .fileName = fileName;
051: }
052:
053: public double getSeconds() {
054: return seconds;
055: }
056:
057: public void setSeconds(double seconds) {
058: this .seconds = seconds;
059: }
060:
061: public double getDuration() {
062: return duration;
063: }
064:
065: public void setDuration(double duration) {
066: this .duration = duration;
067: }
068:
069: public Runnable getCapture() {
070: return capture;
071: }
072:
073: public void setCapture(Runnable capture) {
074: this .capture = capture;
075: }
076:
077: public Thread getCaptureThread() {
078: return captureThread;
079: }
080:
081: public void setCaptureThread(Thread captureThread) {
082: this .captureThread = captureThread;
083: }
084:
085: public Vector getLine() {
086: return line;
087: }
088:
089: public void setLine(java.util.Vector line) {
090: this .line = line;
091: }
092:
093: public AudioInputStream getAudioInputStream() {
094: return audioInputStream;
095: }
096:
097: public void setAudioInputStream(
098: javax.sound.sampled.AudioInputStream audioInputStream) {
099: this .audioInputStream = audioInputStream;
100: }
101:
102: public double getMaxSeconds() {
103: return maxSeconds;
104: }
105:
106: public void setMaxSeconds(double maxSeconds) {
107: this.maxSeconds = maxSeconds;
108: }
109:
110: }
|