cvm.model
Class CVM_Driver

java.lang.Object
  extended by cvm.model.CVM_Driver

public class CVM_Driver
extends java.lang.Object

This is a simple test class.

Author:
Eddie Incer

Method Summary
 ControlSchema createConnectionSchema()
          This method creates a schema containing only one connection in it.
 ControlSchema createConnectionSchema3Way()
          This method creates a schema to stablish a 3 ways communication.
 ControlSchema createConnectionSchema4Way()
          This method creates a schema to stablish a 4 ways communication.
 ControlSchema createConnectionSchema6Way()
          This method creates a schema to stablish a 6 ways communication.
 DataSchema createTestDataSchema()
          This method is used to create a test data schema.
 DataSchema createTestDataSchema2()
          This method creates a test data schema for connection id connection1.
 DataSchema createTestDataSchemaConn2()
          This method creates a test data schema for connection id connection2.
 NegotiationSchema createTestNegotiationSchema(java.lang.String init, java.lang.String act, java.lang.String sender)
          This method is used to create a test negotiation schema
 ControlSchema createTestSchema()
          Deprecated.  
static CVM_Driver getInstance()
          Singleton implementation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static CVM_Driver getInstance()
Singleton implementation.

Returns:
CVM_Driver instance

createConnectionSchema

public ControlSchema createConnectionSchema()
This method creates a schema containing only one connection in it.

Returns:
controlSchema

createConnectionSchema3Way

public ControlSchema createConnectionSchema3Way()
This method creates a schema to stablish a 3 ways communication.

Returns:
controlSchema

createConnectionSchema4Way

public ControlSchema createConnectionSchema4Way()
This method creates a schema to stablish a 4 ways communication.

Returns:
controlSchema

createConnectionSchema6Way

public ControlSchema createConnectionSchema6Way()
This method creates a schema to stablish a 6 ways communication.

Returns:
controlSchema

createTestSchema

public ControlSchema createTestSchema()
Deprecated. 

Returns:
Control Schema for testing

createTestNegotiationSchema

public NegotiationSchema createTestNegotiationSchema(java.lang.String init,
                                                     java.lang.String act,
                                                     java.lang.String sender)
This method is used to create a test negotiation schema

Parameters:
init - id of the initiator
act - action to take
sender - id of the sender
Returns:
negotiation schema

createTestDataSchema

public DataSchema createTestDataSchema()
This method is used to create a test data schema.

Returns:
data schema.

createTestDataSchemaConn2

public DataSchema createTestDataSchemaConn2()
This method creates a test data schema for connection id connection2.

Returns:
data schema

createTestDataSchema2

public DataSchema createTestDataSchema2()
This method creates a test data schema for connection id connection1.

Returns:
data schema