|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cvm.model.handlers.schema.SchemaAnalizer
public class SchemaAnalizer
This class handles the analysis of all the schemas. It handles the schema population among other tasks.
Method Summary | |
---|---|
java.util.ArrayList<ConnectionDevCaps> |
createDevCapsFromSysInfo(java.util.ArrayList<ConnectionMediumType> mediums)
This function creates the CVM capabilities into objects that can be used in the schema. |
java.util.ArrayList<ControlSchema> |
exctractConnectionSchemas(ControlSchema schema)
This function takes the complete global schema and returns a list of smaller control schemas one for every connection. |
ControlSchema |
getConnectionSchmaForUsers(ControlSchema connectionSchema,
java.lang.String localUsrID,
java.lang.String remoteUsrID)
|
static SchemaAnalizer |
getInstance()
Singleton implementation |
boolean |
isNegotiationAccepted(NegotiationSchema schema)
This function checks if the negotiation schema is meant to accept the negotiation. |
boolean |
isNegotiationCanceled(NegotiationSchema schema)
This function checks if the negotiaton schema is meant to cancel the negotiation. |
java.util.HashMap<java.lang.String,NegotiationSchema> |
performDeviceCapabilityNegotiation(java.util.HashMap<java.lang.String,NegotiationSchema> schemas,
ControlSchema ctrSchema)
Checks that all the schemas have the same number of devices. |
ControlSchema |
populateSchema(ControlSchema schema)
This function, for every device in the schema it assigns the device capabilities of the system. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static SchemaAnalizer getInstance()
public ControlSchema populateSchema(ControlSchema schema)
schema
-
public java.util.ArrayList<ConnectionDevCaps> createDevCapsFromSysInfo(java.util.ArrayList<ConnectionMediumType> mediums)
public java.util.ArrayList<ControlSchema> exctractConnectionSchemas(ControlSchema schema)
schema
- global control schema.
public ControlSchema getConnectionSchmaForUsers(ControlSchema connectionSchema, java.lang.String localUsrID, java.lang.String remoteUsrID)
public boolean isNegotiationCanceled(NegotiationSchema schema)
schema
-
public boolean isNegotiationAccepted(NegotiationSchema schema)
schema
-
public java.util.HashMap<java.lang.String,NegotiationSchema> performDeviceCapabilityNegotiation(java.util.HashMap<java.lang.String,NegotiationSchema> schemas, ControlSchema ctrSchema)
schemas
- list with updated communication schemas.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |