cvm.se.script.creator
Class ScriptCreatorManager

java.lang.Object
  extended by cvm.se.script.creator.ScriptCreatorManager

public class ScriptCreatorManager
extends java.lang.Object

This is the entry point in the Script Creator Package. Modified Date: February 14, 2010 Modification: Added GUI notification to display changes to the control schema. It now adds and removes participant from the schema when such a change occurs on the Schema. It also creates a new call app GUI tab when the connection is created.

Author:
Frank Hernandez

Method Summary
 void createAddParticipantScript(java.lang.String sConnID, java.lang.String sParticipant)
          Creates a script to add a participant to the connection.
 void createCreateConnectionScript(java.lang.String sConnID)
          Creates a script to add the connection.
 void createDeclineConnectionScript(java.lang.String sConnID)
          Creates a script to add the connection.
 void createDisableMediaInitiatorScript(java.lang.String sConnID, java.lang.String sMediumName)
          Creates a script to enable a medium to the connection.
 void createEnableMediaInitiatorScript(java.lang.String sConnID, java.lang.String sMediumName)
          Creates a script to enable a medium to the connection.
 void createRemoveParticipantScript(java.lang.String sConnID, java.lang.String sParticipant)
          Creates a script to remove a participant to the connection.
 void createSendMediaScript(java.lang.String sID, java.lang.String medium, java.lang.String mediumURL)
          Creates a script to send Media.
 void createSendSchemaScript(java.lang.String sConnID, java.lang.String senderID, java.lang.String receiverID, java.lang.String controlSchema, java.lang.String dataSchema)
          Creates a script to sendSchemas.
 void executeScripts()
           
 void generateCommunicationMediaScripts(DataSchema oldData, DataSchema newDataSchema)
           
 void generateCommunicationScripts(ControlSchema oldSchema, ControlSchema newSchema)
          This method check both old and new schema, and performs operations according to the changes between them.
static ScriptCreatorManager getInstance()
          Singleton implementation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ScriptCreatorManager getInstance()
Singleton implementation.

Returns:
ScriptCreatorManager instance

createCreateConnectionScript

public void createCreateConnectionScript(java.lang.String sConnID)
Creates a script to add the connection.

Parameters:
sConnID -

createDeclineConnectionScript

public void createDeclineConnectionScript(java.lang.String sConnID)
Creates a script to add the connection.

Parameters:
sConnID -

createAddParticipantScript

public void createAddParticipantScript(java.lang.String sConnID,
                                       java.lang.String sParticipant)
Creates a script to add a participant to the connection.

Parameters:
sConnID -

createRemoveParticipantScript

public void createRemoveParticipantScript(java.lang.String sConnID,
                                          java.lang.String sParticipant)
Creates a script to remove a participant to the connection.

Parameters:
sConnID -

createEnableMediaInitiatorScript

public void createEnableMediaInitiatorScript(java.lang.String sConnID,
                                             java.lang.String sMediumName)
Creates a script to enable a medium to the connection.

Parameters:
sConnID -

createDisableMediaInitiatorScript

public void createDisableMediaInitiatorScript(java.lang.String sConnID,
                                              java.lang.String sMediumName)
Creates a script to enable a medium to the connection.

Parameters:
sConnID -

createSendSchemaScript

public void createSendSchemaScript(java.lang.String sConnID,
                                   java.lang.String senderID,
                                   java.lang.String receiverID,
                                   java.lang.String controlSchema,
                                   java.lang.String dataSchema)
Creates a script to sendSchemas.

Parameters:
sConnID -

createSendMediaScript

public void createSendMediaScript(java.lang.String sID,
                                  java.lang.String medium,
                                  java.lang.String mediumURL)
Creates a script to send Media. Incomplete.

Parameters:
sID -
medium -
mediumURL -

executeScripts

public void executeScripts()

generateCommunicationScripts

public void generateCommunicationScripts(ControlSchema oldSchema,
                                         ControlSchema newSchema)
This method check both old and new schema, and performs operations according to the changes between them.

Parameters:
oldSchema - Schema Previously Agreed On.
newSchema - Schema just agreed by the negotiation.

generateCommunicationMediaScripts

public void generateCommunicationMediaScripts(DataSchema oldData,
                                              DataSchema newDataSchema)
Parameters:
oldData - Schema Previously Agreed On.
newDataSchema - Schema just agreed by the negotiation.