|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Panel
|
+--java.applet.Applet
|
+--java.apps.LocalUSP
An applet is a small program that is intended not to be run on its own, but rather to be embedded inside another application. The Applet class must be the superclass of any applet that is embedded in a Web page or viewed by the Java Applet Viewer. The Applet class provides a standard interface between applets and their environment.
| Field Summary | |
boolean |
appletcontext
|
boolean |
ask_role
|
boolean |
disconnected
|
boolean |
exit
|
java.lang.String |
filename
|
java.net.URL |
home
|
java.lang.String |
homehost
|
java.net.URL |
htmlurl
|
boolean |
multiparty
|
java.lang.String |
myhost
|
java.lang.String |
myuspname
|
boolean |
organized
|
java.lang.String |
otherroleinservice
|
java.lang.String |
party
|
java.lang.String |
role
|
boolean |
role_not_set
|
int |
service_number
|
java.apps.ServiceIdent |
serviceident
|
java.lang.String |
servicename
|
java.net.URL |
urlfile
|
java.net.URL |
urlusp
|
java.lang.String |
user
|
java.lang.String |
uspident
|
java.lang.String |
uspname
|
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
| Constructor Summary | |
LocalUSP()
|
|
| Method Summary | |
java.lang.Integer |
activateAP(java.lang.String htmlfile,
java.lang.String uspsource,
java.lang.String party,
java.lang.String role)
|
int |
activateService()
Method that actives the service throw the MultiTEL local kernel. |
boolean |
actualizeAPD(int index,
java.lang.String name,
java.lang.String description,
java.lang.String miscellany,
int state,
java.net.URL url,
java.lang.String advancedInfo,
boolean organized,
java.lang.String file,
java.lang.String uspsrc)
|
void |
addDevConnectionsInfo(java.apps.ServiceIdent ident,
java.lang.String uspname,
java.util.Hashtable devcon)
|
void |
addRefTo(java.lang.String name,
Component c)
|
void |
addRefTo(java.lang.String name,
Component c,
java.lang.String role)
|
void |
addRefTo(java.lang.String name,
Connector c)
|
void |
addRefTo(java.lang.String name,
Connector c,
java.lang.String role)
|
int |
addToContext(Component c)
|
int |
addToContext(Connector c)
|
void |
addUSPToKernel(java.apps.ServiceIdent ident,
java.lang.String uspname)
Methods to set and link the active service (its USP) to the local Kernel, including the information related to set connections and information structures about the running service. |
int |
alterContext(Component c)
|
int |
alterContext(Connector c)
|
void |
alterContext(Connector[] cc,
Component[] c)
This method modifies the local context. |
void |
broadcast(java.apps.Message m)
Method that performs the mechanism of broadcasting a message to all suitable components |
void |
broadcasting(java.apps.Message m)
|
java.util.Vector |
captureDevices(java.util.Vector devices)
Methods to invoke services offered by the Device Manager, to capture devices and release them. |
void |
component(java.lang.String name,
java.lang.String role,
java.lang.String location,
java.lang.String implementation)
Methods that define all the components and connectors that can be instanciated anytime along service lifetime. |
void |
connecToBy(java.lang.String connector,
java.lang.String component,
java.lang.String event)
Method that connects a connector to a component, because that connector will handle the event propagated by this component |
void |
connector(java.lang.String name,
java.lang.String role,
java.lang.String location,
java.lang.String implementation)
|
void |
connectToBy(java.lang.String connector,
java.lang.String component,
java.lang.String event,
java.lang.String rename)
This method is the same as above, except that it renames the event before it was propagated to the connector |
void |
consultRole()
|
Component |
createComponent(java.lang.String name)
|
Component |
createComponent(java.lang.String name,
java.lang.Object[] args)
Methods to create and destroy components (and device components), as well as connectors by reflection (reflective programming) |
Connector |
createConnector(java.lang.String name)
|
Connector |
createConnector(java.lang.String name,
java.lang.Object[] args)
|
Component |
createDevComponent(java.lang.String devImpl,
java.lang.String devInterface)
|
Component |
createDevComponent(java.lang.String devImpl,
java.lang.String devInterface,
java.lang.Object[] args)
|
java.lang.Object |
createInstance(java.lang.String impl,
java.lang.Object[] args)
|
java.lang.Object |
createInstance(java.lang.String impl,
java.lang.String name)
|
void |
defComponents()
|
void |
defConnectors()
|
void |
desactivateService()
Method that desactives the service throw the MultiTEL local kernel. |
void |
destroy()
|
void |
deviceReleased(java.lang.String device)
|
void |
disconnect()
Methods that perform the correct disconnection of the service |
void |
event(java.apps.ClassEvent event)
This method decides, at runtime, about which connector or connectors may handle an event. |
void |
finalizeComponent(Component c)
|
void |
finalizeConnector(Connector c)
|
Component |
getComponentFromContext(java.lang.String name)
|
Component |
getComponentFromContext(java.lang.String name,
int ident)
|
Component |
getComponentFromContext(java.net.URL url)
|
Connector |
getConnectorFromContext(java.lang.String name)
|
Connector |
getConnectorFromContext(java.net.URL url)
|
void |
getFile()
Method that obtains the filename of the organization file. |
java.util.Vector |
getGlobalContext()
These methods return a list with all the USP connected to the current service (global application context), representing all the users (participants and manager(s)). |
void |
getHome()
Method that do not need to be overridden . |
java.util.Vector |
getLocalAPD(java.lang.String pattern)
Methods that invoke services offered by the local application directory like, for example, search a specific remote directory, update an entry, or register a new service (adding an entry). |
java.util.Vector |
getLocalC3D(java.lang.String pattern)
|
java.util.Vector |
getLocalUSPsInService(java.apps.ServiceIdent s)
|
java.lang.String |
getOrgFile(int index)
|
java.lang.String |
getOrgFile(java.lang.String htmlfile,
java.lang.String uspsource)
|
java.apps.APD |
getRemoteAPD(java.lang.String host)
Method that obtains remote references of remote objects that belongs to a remote MultiTEL kernel |
java.apps.USP |
getRemoteUSP(java.lang.String hostandname)
|
java.apps.USP |
getRemoteUSP(java.lang.String host,
java.lang.String servername)
|
void |
getRole()
This method can be overridden . |
void |
getRoleByGui()
|
void |
getRoleByParam()
|
void |
getServiceName()
This method can be overridden . |
void |
getServiceNumber()
This method do not need to be be overridden . |
java.lang.String |
getServiceParameter(java.lang.String name)
|
java.apps.UserServiceInfo |
getUserServiceInfo(java.apps.ServiceIdent s,
java.lang.String usp)
|
java.lang.String |
getUSPByUser(java.lang.String user)
Useful methods for components and connectors. |
void |
getUSPIdent()
Method that creates remote USP ident. |
java.lang.Integer |
getUSPIdent(int index)
|
java.util.Vector |
getUSPsInService(java.apps.ServiceIdent s)
|
void |
handlesEventFrom(java.lang.String connector,
java.lang.String event,
java.lang.String[] components)
This method is similar to the above one, but it do not renames the event. |
void |
handlesEventFrom(java.lang.String connector,
java.lang.String event,
java.lang.String[] components,
java.lang.String rename)
Method that connects a connector to a set of components, because that connector will handle an event propagated by these components. |
void |
handlesEventsFrom(java.lang.String connector,
java.lang.String[] events,
java.lang.String component)
Method that connects a connector to a component, because that connector will handle the events propagated by this component |
void |
init()
Redefinition of the Applet class method init. |
void |
initialContext()
Method that instanciates the initial context service, depending on user role |
boolean |
isHereTheComponent(java.lang.String name,
int ident)
|
boolean |
isOrganized()
Methods to load the service organization file, if it has been organised. |
boolean |
isThisComponentHere(java.lang.String name)
|
boolean |
isThisComponentHere(java.lang.String name,
java.lang.String role)
|
boolean |
isThisConnectorHere(java.lang.String name)
|
boolean |
isThisConnectorHere(java.lang.String name,
java.lang.String role)
|
void |
loadConnections()
These methods define the service architecture. |
void |
loadOrganization()
|
void |
loadOrganizationImplementations()
|
void |
loadOrganizationLocations()
|
void |
loadOrganizationParameters()
|
void |
loadOrganizationParty()
|
java.lang.String |
localizeComponentByType(java.lang.String type)
Methods that manage the local context of instanciated components and connectors. |
Component |
lookfor(java.lang.String name)
|
void |
managerInitialContext()
Method that instanciates the initial context service for a manager (first method), or a participant (the second one). |
void |
migrate(Connector c,
java.lang.String destination)
Method that migrates an instanciated connector to another active service USP |
void |
migration(Connector c)
This method accepts a migrated connector to be installed at this USP |
java.io.InputStreamReader |
openRemoteFile(java.lang.String filename)
|
void |
participantInitialContext()
|
void |
propagateEvent(java.lang.String connectorname,
java.apps.ClassEvent e)
Method that propagates the event to the connector that will handle it at the local context. |
void |
receiveMessage(java.apps.Message m)
Method that invokes a message of a component inside the local context ( instanciated components) |
void |
registerAP(java.lang.String name,
java.lang.String description,
java.lang.String miscellany,
int state,
java.net.URL url,
java.lang.String advancedInfo,
boolean organized,
java.lang.String file,
java.lang.String uspsrc)
|
void |
releaseDevComponent(java.util.Vector devices)
|
void |
releaseDevices()
|
void |
removeAP(int index)
|
void |
removeComponentRef(java.lang.String name)
|
void |
removeComponentRef(java.lang.String name,
java.lang.String role)
|
void |
removeConnectorRef(java.lang.String name)
|
void |
removeConnectorRef(java.lang.String name,
java.lang.String role)
|
void |
removeUSPFromKernel(java.apps.ServiceIdent ident,
java.lang.String uspname)
|
java.util.Vector |
searchAP(java.lang.String pattern,
java.lang.String where,
java.lang.String scope)
|
java.util.Vector |
searchC3(java.lang.String pattern,
java.lang.String where,
java.lang.String scope)
Methods to manage the repository directory, containing components, connectors and services. |
void |
sendMessage(java.apps.Message m)
Name-based invocation Methods that handle the three types of message delivery from connectors to components. |
void |
sendMessageByType(java.apps.Message m)
Class-based invocation Methods that handle the three types of message delivery from connectors to components. |
void |
setOrganization()
Method that loads the organization file (written in LCF language), and loads the necessary parameters' values to run the service |
void |
setServiceOptions()
Method that must be overridden to set service options that can not be set at the configuration phase of a service |
void |
setValueParameter(java.lang.String name,
java.lang.String value)
|
void |
transmitEvent(java.lang.String uspremote,
java.lang.String name,
java.apps.ClassEvent e)
|
void |
transmitEvent(java.apps.USP uspremote,
java.lang.String name,
java.apps.ClassEvent e)
Method that propagates the event to a remote USP, that will be managed by remote connectors. |
void |
transmitEventToHost(java.lang.String host,
java.lang.String to,
java.apps.ClassEvent e)
|
java.lang.String |
typeOf(java.lang.String name)
|
java.lang.String |
valueOf(java.lang.String name)
|
java.lang.String |
whoNeedIt(java.lang.String name)
|
| Methods inherited from class java.applet.Applet |
getAppletContext,
getAppletInfo,
getAudioClip,
getAudioClip,
getCodeBase,
getDocumentBase,
getImage,
getImage,
getLocale,
getParameter,
getParameterInfo,
isActive,
newAudioClip,
play,
play,
resize,
resize,
setStub,
showStatus,
start,
stop |
| Methods inherited from class java.awt.Panel |
addNotify |
| Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getAlignmentX,
getAlignmentY,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getInsets,
getLayout,
getMaximumSize,
getMinimumSize,
getPreferredSize,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paint,
paintComponents,
preferredSize,
print,
printComponents,
remove,
remove,
removeAll,
removeContainerListener,
removeNotify,
setFont,
setLayout,
update,
validate |
| Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addPropertyChangeListener,
addPropertyChangeListener,
bounds,
checkImage,
checkImage,
contains,
contains,
createImage,
createImage,
disable,
dispatchEvent,
enable,
enable,
enableInputMethods,
getBackground,
getBounds,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont,
getFontMetrics,
getForeground,
getGraphics,
getHeight,
getInputContext,
getInputMethodRequests,
getLocation,
getLocation,
getLocationOnScreen,
getName,
getParent,
getPeer,
getSize,
getSize,
getToolkit,
getTreeLock,
getWidth,
getX,
getY,
gotFocus,
handleEvent,
hasFocus,
hide,
imageUpdate,
inside,
isDisplayable,
isDoubleBuffered,
isEnabled,
isFocusTraversable,
isLightweight,
isOpaque,
isShowing,
isValid,
isVisible,
keyDown,
keyUp,
list,
list,
list,
location,
lostFocus,
mouseDown,
mouseDrag,
mouseEnter,
mouseExit,
mouseMove,
mouseUp,
move,
nextFocus,
paintAll,
postEvent,
prepareImage,
prepareImage,
printAll,
remove,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removePropertyChangeListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
repaint,
requestFocus,
reshape,
setBackground,
setBounds,
setBounds,
setComponentOrientation,
setCursor,
setDropTarget,
setEnabled,
setForeground,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
setVisible,
show,
show,
size,
toString,
transferFocus |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public java.lang.String role
public boolean organized
public boolean multiparty
public boolean appletcontext
public boolean disconnected
public java.lang.String party
public boolean ask_role
public int service_number
public java.net.URL home
public java.net.URL urlusp
public java.net.URL urlfile
public java.net.URL htmlurl
public java.lang.String uspident
public java.lang.String homehost
public java.lang.String otherroleinservice
public java.lang.String uspname
public java.lang.String myuspname
public java.lang.String myhost
public java.lang.String filename
public java.lang.String user
public java.lang.String servicename
public java.apps.ServiceIdent serviceident
public boolean role_not_set
public boolean exit
| Constructor Detail |
public LocalUSP()
| Method Detail |
public void init()
public void setServiceOptions()
public void getHome()
throws java.lang.Exception
public void getServiceNumber()
public void getServiceName()
public void getRole()
public void consultRole()
public void getRoleByGui()
public void getRoleByParam()
public int activateService()
public void desactivateService()
public void getUSPIdent()
public boolean isOrganized()
public void loadOrganization()
public void loadOrganizationParameters()
public void loadOrganizationImplementations()
public void loadOrganizationParty()
public void loadOrganizationLocations()
public void getFile()
public void setOrganization()
public java.apps.APD getRemoteAPD(java.lang.String host)
public java.util.Vector getLocalAPD(java.lang.String pattern)
throws java.rmi.RemoteException
public java.util.Vector searchAP(java.lang.String pattern,
java.lang.String where,
java.lang.String scope)
throws java.rmi.RemoteException
public boolean actualizeAPD(int index,
java.lang.String name,
java.lang.String description,
java.lang.String miscellany,
int state,
java.net.URL url,
java.lang.String advancedInfo,
boolean organized,
java.lang.String file,
java.lang.String uspsrc)
throws java.rmi.RemoteException
public void registerAP(java.lang.String name,
java.lang.String description,
java.lang.String miscellany,
int state,
java.net.URL url,
java.lang.String advancedInfo,
boolean organized,
java.lang.String file,
java.lang.String uspsrc)
throws java.rmi.RemoteException
public java.lang.Integer activateAP(java.lang.String htmlfile,
java.lang.String uspsource,
java.lang.String party,
java.lang.String role)
throws java.rmi.RemoteException
public void removeAP(int index)
throws java.rmi.RemoteException
public java.lang.Integer getUSPIdent(int index)
throws java.rmi.RemoteException
public java.lang.String getOrgFile(java.lang.String htmlfile,
java.lang.String uspsource)
throws java.rmi.RemoteException
public java.lang.String getOrgFile(int index)
throws java.rmi.RemoteException
public java.util.Vector searchC3(java.lang.String pattern,
java.lang.String where,
java.lang.String scope)
throws java.rmi.RemoteException
public java.util.Vector getLocalC3D(java.lang.String pattern)
throws java.rmi.RemoteException
public void addUSPToKernel(java.apps.ServiceIdent ident,
java.lang.String uspname)
throws java.rmi.RemoteException
public java.util.Vector getLocalUSPsInService(java.apps.ServiceIdent s)
throws java.rmi.RemoteException
public java.util.Vector getUSPsInService(java.apps.ServiceIdent s)
throws java.rmi.RemoteException
public java.apps.UserServiceInfo getUserServiceInfo(java.apps.ServiceIdent s,
java.lang.String usp)
throws java.lang.Exception,
java.rmi.RemoteException
public void removeUSPFromKernel(java.apps.ServiceIdent ident,
java.lang.String uspname)
throws java.rmi.RemoteException
public void addDevConnectionsInfo(java.apps.ServiceIdent ident,
java.lang.String uspname,
java.util.Hashtable devcon)
throws java.lang.Exception,
java.rmi.RemoteException
public java.util.Vector captureDevices(java.util.Vector devices)
throws java.rmi.RemoteException
public void releaseDevices()
throws java.rmi.RemoteException
public void deviceReleased(java.lang.String device)
throws java.rmi.RemoteException
public void event(java.apps.ClassEvent event)
public void transmitEvent(java.apps.USP uspremote,
java.lang.String name,
java.apps.ClassEvent e)
throws java.lang.Exception
public void transmitEvent(java.lang.String uspremote,
java.lang.String name,
java.apps.ClassEvent e)
throws java.lang.Exception
public void transmitEventToHost(java.lang.String host,
java.lang.String to,
java.apps.ClassEvent e)
throws java.lang.Exception
public void propagateEvent(java.lang.String connectorname,
java.apps.ClassEvent e)
public void alterContext(Connector[] cc,
Component[] c)
public int alterContext(Component c)
public int alterContext(Connector c)
public void broadcast(java.apps.Message m)
public void broadcasting(java.apps.Message m)
public void sendMessage(java.apps.Message m)
throws java.lang.Exception
public void sendMessageByType(java.apps.Message m)
throws java.lang.Exception
public void receiveMessage(java.apps.Message m)
public java.lang.String localizeComponentByType(java.lang.String type)
public int addToContext(Component c)
public int addToContext(Connector c)
public void finalizeConnector(Connector c)
public void finalizeComponent(Component c)
public Component getComponentFromContext(java.lang.String name,
int ident)
public Component getComponentFromContext(java.net.URL url)
public Component getComponentFromContext(java.lang.String name)
public Connector getConnectorFromContext(java.net.URL url)
public Connector getConnectorFromContext(java.lang.String name)
public java.apps.USP getRemoteUSP(java.lang.String host,
java.lang.String servername)
throws java.lang.Exception
public java.apps.USP getRemoteUSP(java.lang.String hostandname)
throws java.lang.Exception
public Component lookfor(java.lang.String name)
public void disconnect()
throws java.lang.Exception
public void destroy()
public java.util.Vector getGlobalContext()
public void loadConnections()
public void defComponents()
public void defConnectors()
public void initialContext()
public void managerInitialContext()
public void participantInitialContext()
public java.lang.String getServiceParameter(java.lang.String name)
public java.lang.String valueOf(java.lang.String name)
public java.lang.String typeOf(java.lang.String name)
public java.lang.String whoNeedIt(java.lang.String name)
public void setValueParameter(java.lang.String name,
java.lang.String value)
public void component(java.lang.String name,
java.lang.String role,
java.lang.String location,
java.lang.String implementation)
public void connector(java.lang.String name,
java.lang.String role,
java.lang.String location,
java.lang.String implementation)
public void handlesEventFrom(java.lang.String connector,
java.lang.String event,
java.lang.String[] components,
java.lang.String rename)
public void handlesEventFrom(java.lang.String connector,
java.lang.String event,
java.lang.String[] components)
public void connecToBy(java.lang.String connector,
java.lang.String component,
java.lang.String event)
public void connectToBy(java.lang.String connector,
java.lang.String component,
java.lang.String event,
java.lang.String rename)
public void handlesEventsFrom(java.lang.String connector,
java.lang.String[] events,
java.lang.String component)
public void migrate(Connector c,
java.lang.String destination)
public void migration(Connector c)
public Component createComponent(java.lang.String name,
java.lang.Object[] args)
public Component createComponent(java.lang.String name)
public Component createDevComponent(java.lang.String devImpl,
java.lang.String devInterface,
java.lang.Object[] args)
public Component createDevComponent(java.lang.String devImpl,
java.lang.String devInterface)
public void releaseDevComponent(java.util.Vector devices)
public Connector createConnector(java.lang.String name)
public Connector createConnector(java.lang.String name,
java.lang.Object[] args)
public java.lang.Object createInstance(java.lang.String impl,
java.lang.Object[] args)
throws java.lang.Exception
public java.lang.Object createInstance(java.lang.String impl,
java.lang.String name)
throws java.lang.Exception
public boolean isThisConnectorHere(java.lang.String name)
public boolean isThisComponentHere(java.lang.String name)
public boolean isThisConnectorHere(java.lang.String name,
java.lang.String role)
public boolean isThisComponentHere(java.lang.String name,
java.lang.String role)
public boolean isHereTheComponent(java.lang.String name,
int ident)
public void addRefTo(java.lang.String name,
Component c)
public void addRefTo(java.lang.String name,
Connector c)
public void removeComponentRef(java.lang.String name)
public void removeConnectorRef(java.lang.String name)
public void addRefTo(java.lang.String name,
Component c,
java.lang.String role)
public void addRefTo(java.lang.String name,
Connector c,
java.lang.String role)
public void removeComponentRef(java.lang.String name,
java.lang.String role)
public void removeConnectorRef(java.lang.String name,
java.lang.String role)
public java.lang.String getUSPByUser(java.lang.String user)
public java.io.InputStreamReader openRemoteFile(java.lang.String filename)
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||