de.janrufmonitor.framework
Interface ICallFactory


public interface ICallFactory

This interface must be implemented by a CallFactory object, which should be used in the framework. A CallFactory should be implemented as a singleton.

Author:
Thilo Brandt

Method Summary
 IAttribute createAttribute(String name, String value)
          Create an attribute with the specific data.
 IAttributeMap createAttributeList()
          Deprecated.  
 IAttributeMap createAttributeMap()
          Create an empty attribute map.
 ICall createCall(ICaller caller, IMsn msn, ICip cip)
          Create a new call object with the specific data.
 ICall createCall(ICaller caller, IMsn msn, ICip cip, Date date)
          Create a new call object with the specific data.
 ICall createCall(String uuid, ICaller caller, IMsn msn, ICip cip, Date date)
          Create a new call object with the specific data.
 ICall createCall(String uuid, ICaller caller, IMsn msn, ICip cip, Date date, IAttribute attribute)
          Create a new call object with the specific data.
 ICall createCall(String uuid, ICaller caller, IMsn msn, ICip cip, Date date, IAttributeMap attributeMap)
          Create a new call object with the specific data.
 ICallList createCallList()
          Create an empty call list.
 ICallList createCallList(int capacity)
          Create an empty call list with an initial capacity.
 ICip createCip(String cip, String additional)
          Create a new cip object with the specific data.
 IMsn createMsn(String msn, String additional)
          Create a new msn object with the specific data.
 

Method Detail

createCall

ICall createCall(String uuid,
                 ICaller caller,
                 IMsn msn,
                 ICip cip,
                 Date date,
                 IAttribute attribute)
Create a new call object with the specific data.

Parameters:
uuid - UUID of the call
caller - caller object of the call
msn - MSN of the call
cip - CIP of the call
date - date of the call
attribute - a attribute to be set for the call
Returns:
a new instance of a call.

createCall

ICall createCall(String uuid,
                 ICaller caller,
                 IMsn msn,
                 ICip cip,
                 Date date,
                 IAttributeMap attributeMap)
Create a new call object with the specific data.

Parameters:
uuid - UUID of the call
caller - caller object of the call
msn - MSN of the call
cip - CIP of the call
date - date of the call
attributes - a attribute list to be set for the call
Returns:
a new instance of a call.

createCall

ICall createCall(String uuid,
                 ICaller caller,
                 IMsn msn,
                 ICip cip,
                 Date date)
Create a new call object with the specific data.

Parameters:
uuid - UUID of the call
caller - caller object of the call
msn - MSN of the call
cip - CIP of the call
date - date of the call
Returns:
a new instance of a call.

createCall

ICall createCall(ICaller caller,
                 IMsn msn,
                 ICip cip,
                 Date date)
Create a new call object with the specific data.

Parameters:
caller - caller object of the call
msn - MSN of the call
cip - CIP of the call
date - date of the call
Returns:
a new instance of a call.

createCall

ICall createCall(ICaller caller,
                 IMsn msn,
                 ICip cip)
Create a new call object with the specific data.

Parameters:
caller - caller object of the call
msn - MSN of the call
cip - CIP of the call
Returns:
a new instance of a call.

createMsn

IMsn createMsn(String msn,
               String additional)
Create a new msn object with the specific data.

Parameters:
msn - MSN value of the msn object
additional - additional information of the msn object
Returns:
a new instance of a msn object.

createCip

ICip createCip(String cip,
               String additional)
Create a new cip object with the specific data.

Parameters:
cip - CIP value of the msn object
additional - additional information of the cip object
Returns:
a new instance of a cip object.

createAttribute

IAttribute createAttribute(String name,
                           String value)
Create an attribute with the specific data.

Parameters:
name - name of the attribute.
value - value of the attribute.
Returns:
a new instance of an attribute.

createAttributeList

IAttributeMap createAttributeList()
Deprecated. 

Create an empty attribute list.

Returns:
a new instance of an attribute list.

createAttributeMap

IAttributeMap createAttributeMap()
Create an empty attribute map.

Returns:
a new instance of an attribute map.

createCallList

ICallList createCallList()
Create an empty call list. Initial capacity is set to 1.

Returns:
a new instance of an call list.

createCallList

ICallList createCallList(int capacity)
Create an empty call list with an initial capacity.

Returns:
a new instance of an call list.


Copyright © 2010 by Thilo Brandt. All Rights Reserved.