001 /*
002 * File: $HeadURL: https://jvoicexml.svn.sourceforge.net/svnroot/jvoicexml/core/trunk/org.jvoicexml/src/org/jvoicexml/callmanager/CallParameters.java $
003 * Version: $LastChangedRevision: 2129 $
004 * Date: $Date: 2010-04-09 11:33:10 +0200 (Fr, 09 Apr 2010) $
005 * Author: $LastChangedBy: schnelle $
006 *
007 * JVoiceXML - A free VoiceXML implementation.
008 *
009 * Copyright (C) 2009 JVoiceXML group - http://jvoicexml.sourceforge.net
010 *
011 * This library is free software; you can redistribute it and/or
012 * modify it under the terms of the GNU Library General Public
013 * License as published by the Free Software Foundation; either
014 * version 2 of the License, or (at your option) any later version.
015 *
016 * This library is distributed in the hope that it will be useful,
017 * but WITHOUT ANY WARRANTY; without even the implied warranty of
018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
019 * Library General Public License for more details.
020 *
021 * You should have received a copy of the GNU Library General Public
022 * License along with this library; if not, write to the Free Software
023 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
024 *
025 */
026
027 package org.jvoicexml.callmanager;
028
029 import java.net.URI;
030
031 /**
032 * Container for call parameters.
033 * @author Dirk Schnelle-Walka
034 * @version $Revision: 2129 $
035 * @since 0.7
036 */
037 public class CallParameters {
038 /** The called id. */
039 private URI calledId;
040
041 /** The id of the caller. */
042 private URI callerId;
043
044 /** The terminal. */
045 private Terminal terminal;
046
047 /**
048 * Retrieves the terminal.
049 * @return the terminal
050 */
051 public final Terminal getTerminal() {
052 return terminal;
053 }
054
055 /**
056 * Sets the terminal.
057 * @param term the terminal to set
058 */
059 public final void setTerminal(final Terminal term) {
060 terminal = term;
061 }
062
063 /**
064 * Retrieves the called id.
065 * @return the calledId
066 */
067 public final URI getCalledId() {
068 return calledId;
069 }
070
071 /**
072 * Sets the called id.
073 * @param id the called id to set
074 */
075 public final void setCalledId(final URI id) {
076 calledId = id;
077 }
078
079 /**
080 * Retrieves the id of the caller.
081 * @return the caller id
082 */
083 public final URI getCallerId() {
084 return callerId;
085 }
086
087 /**
088 * Sets the caller id.
089 * @param id the caller id to set
090 */
091 public final void setCallerId(final URI id) {
092 callerId = id;
093 }
094
095 }