ICore

it.unipmn.di.Meeting.Core.ICore
it.unipmn.di.Meeting.Core.Core

ICore is an interface allowing components to get access to Core methods.

ICore è un’interfaccia che permette ai componenti di accedere a metodi della classe Core.

Summary
ICoreICore is an interface allowing components to get access to Core methods.
Functions
removeNetworkComponentThis method is usually called by a component that wants to be removed from the list of network components.
removeLocalComponentThis method is usually called by a component that wants to be removed from the list of local components (connected through LocalConnection).
addNetworkComponentThis method is usually called by a component that wants to be added to the list of network components.
addLocalComponentThis method is usually called by a component that wants to be added to the list of local components (connected through LocalConnection).
disconnectNetworkThis method fully disconnects all network components and the Connector itself.
disconnectLocalThis method fully disconnects all local components and the Connector itself.
openLocalnot fully implemented
openNetworkThis method opens a network connection.
connectNetworkThis method fully connects all already added network components and the Connector itself.
connectLocalThis method fully connects all already added local components and the Connector itself.
uploadFileThis method uploads a file of type(s) fileTypes to the address specified by URL, after having set the callbacks.
downloadFileThis method downloads a file of name name from the address specified by URL, after having set the callbacks.

Functions

removeNetworkComponent

function removeNetworkComponent (component: IClientComponent) :Void

This method is usually called by a component that wants to be removed from the list of network components.

Calling this method causes the connection to close.

Questo metodo viene richiamato solitamente da un componente che vuole essere rimosso dalla lista dei componenti di rete.

La chiamata al metodo comporta la chiusura della connessione.

Paramenter

component{IClientComponent} the component instance / l’istanza del componente

removeLocalComponent

function removeLocalComponent (component: IClientComponent):Void

This method is usually called by a component that wants to be removed from the list of local components (connected through LocalConnection).

Calling this method causes the connection to close.

Questo metodo viene richiamato solitamente da un componente che vuole essere rimosso dalla lista dei componenti di locali (collegati tramite LocalConnection).

La chiamata al metodo comporta la chiusura della connessione.

Paramenter

component{IClientComponent} the component instance / l’istanza del componente

addNetworkComponent

function addNetworkComponent (component: IClientComponent):Void

This method is usually called by a component that wants to be added to the list of network components.

Calling this method causes the component to connect if the Connector is already connected.

Questo metodo viene richiamato solitamente da un componente che vuole essere aggiunto alla lista dei componenti di rete.

La chiamata al metodo comporta la connessione del componente se in precendeza era stata effettuata la connessione del Connector.

Paramenter

component{IClientComponent} the component instance / l’istanza del componente

addLocalComponent

function addLocalComponent (component: IClientComponent):Void

This method is usually called by a component that wants to be added to the list of local components (connected through LocalConnection).

Calling this method causes the component to connect if the Connector is already connected.

Questo metodo viene richiamato solitamente da un componente che vuole essere aggiunto alla lista dei componenti locali (collegati tramite LocalConnection).

La chiamata al metodo comporta la connessione del componente se in precendeza era stata effettuata la connessione del Connector.

Paramenter

component{IClientComponent} the component instance / l’istanza del componente

disconnectNetwork

function disconnectNetwork ():Void

This method fully disconnects all network components and the Connector itself.

Questo metodo effettua la disconnessione completa di tutti i componenti di rete e del Connector stesso.

disconnectLocal

function disconnectLocal ():Void

This method fully disconnects all local components and the Connector itself.

Questo metodo effettua la disconessione completa di tutti i componenti Locali e del Connector stesso.

openLocal

function openLocal (uri: String):Void

not fully implemented

non completamente implementato

openNetwork

function openNetwork (uri: String,
params: Object):IConnector

This method opens a network connection.

Questo metodo apre una connessione di rete.

Paramenter

URI{String} destination URI / URI di destinazione
params{Object} parameters passed to the server on connection phase / paramentri passati al server nella fase di connessione

Returns

{IConnector} the generated Connector instance / l’istanza del Connector che è stato generato

connectNetwork

function connectNetwork ():Void

This method fully connects all already added network components and the Connector itself.

Questo metodo effettua la connessione completa di tutti i componenti di rete già aggiunti e del Connector stesso.

connectLocal

function connectLocal ():Void

This method fully connects all already added local components and the Connector itself.

Questo metodo effettua la connessione completa di tutti i componenti locali già aggiunti e del Connector stesso.

uploadFile

function uploadFile (fileTypes: Array,
url: String,
callback: Object):Void

This method uploads a file of type(s) fileTypes to the address specified by URL, after having set the callbacks.

The callbacks let to know how the transfer task is going on and to get error information.

Questo metodo effettua l’upload di un file di tipo/i fileTypes all’indirizzo URL dopo aver settato le callback.

Le callback permettono di sapere come procede il trasferimento e le informazioni di errore.

Paramenter

fileTypes{Array} array containing the allowed file types / array contenente i tipi di file accettati
URL{String} destination URL of the file URL di destinazione del file
callback{Object} contains the methods needed for managing the transfer / contiene i metodi necessari alla gestione del trasferimento

downloadFile

function downloadFile(url: String,
callback: Object,
name: String):Void

This method downloads a file of name name from the address specified by URL, after having set the callbacks.

The callbacks let to know how the transfer task is going on and to get error information.

Questo metodo effettua il download di un file dal nome name dall’indirizzo URL dopo aver settato le callback.

Le callback permettono di sapere come procede il trasferimento e le informazioni di errore.

Paramenter

name{String} filename
URL{String} destination URL of the file / URL di destinazione del file
callback{Object} contains the methods needed for managing the transfer / contiene i metodi necessari alla gestione del trasferimento
function removeNetworkComponent (component: IClientComponent) :Void
This method is usually called by a component that wants to be removed from the list of network components.
function removeLocalComponent (component: IClientComponent):Void
This method is usually called by a component that wants to be removed from the list of local components (connected through LocalConnection).
function addNetworkComponent (component: IClientComponent):Void
This method is usually called by a component that wants to be added to the list of network components.
function addLocalComponent (component: IClientComponent):Void
This method is usually called by a component that wants to be added to the list of local components (connected through LocalConnection).
function disconnectNetwork ():Void
This method fully disconnects all network components and the Connector itself.
function disconnectLocal ():Void
This method fully disconnects all local components and the Connector itself.
function openLocal (uri: String):Void
not fully implemented
function openNetwork (uri: String,
params: Object):IConnector
This method opens a network connection.
function connectNetwork ():Void
This method fully connects all already added network components and the Connector itself.
function connectLocal ():Void
This method fully connects all already added local components and the Connector itself.
function uploadFile (fileTypes: Array,
url: String,
callback: Object):Void
This method uploads a file of type(s) fileTypes to the address specified by URL, after having set the callbacks.
function downloadFile(url: String,
callback: Object,
name: String):Void
This method downloads a file of name name from the address specified by URL, after having set the callbacks.