Fri Jan 27 21:07:40 KST 2006
Class Diagrams
Subpackages
Classes
Interfaces
Class Diagram <default>
Package Nodes
Class Nodes
Interface Nodes
public abstract class AbstractMessenger
Copyright (C) 2004 B. Lamot
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
A basic implementation all Messengers need, the listener method are implemented.
The sendMessage method should be overridden.
| Field Summary |
private HashSet |
Placeholder for the listeners that want to be notified on a received message. |
| Method Summary |
public void |
This method adds a listener, which will be triggered when a message is received. |
public abstract void |
Terminate this messenger and let it clean-up it's trash (jni trash or sockets and stuff). |
public abstract boolean |
Used to initialize the platform specific initialisation. |
protected final void |
To be called by the messengers that extend this class.
|
public final void |
Removes a previously added listener. |
public abstract boolean |
Messengers should override this method with their sendMessage implementation, dependant on the platform. |
private HashSet listeners = new HashSet(5)
Placeholder for the listeners that want to be notified on a received message.
This method adds a listener, which will be triggered when a message is received.
Parameters:
listener the listener which has to be added.
public abstract void destroy()
Terminate this messenger and let it clean-up it's trash (jni trash or sockets and stuff).
public abstract boolean initialize()
Used to initialize the platform specific initialisation.
Returns:
false if initialisation went wrong.
protected final void onMessageReceived(String message)
To be called by the messengers that extend this class.
This will fire all the listeners.
Parameters:
message the message the listeners have to be fired with.
Removes a previously added listener.
Parameters:
listener the listener that needs to be removed.
public abstract boolean sendMessage(String message)
Messengers should override this method with their sendMessage implementation, dependant on the platform.
Parameters:
message the message to send.
Returns:
false if message could not be send.
|
public class Messenger
Extends:
Copyright (C) 2004 B. Lamot
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
Basic class needed to load the dll and stuff....
Maybe to be named differently later, i couldnt think of a good name right now
| Field Summary |
private static Vector |
|
|
|
| Method Summary |
public void |
|
public boolean |
|
private static native synchronized int |
|
private static native synchronized int |
|
private static native synchronized int |
|
public static void |
This method is called by the dll when a skype message is received. |
public static void |
Called by the dll when a skype instance is found. |
public boolean |
|
private static Vector listeners = new Vector()
public void destroy()
public boolean initialize()
private static native synchronized int nativeDestroy()
Throws:
UnsatisfiedLinkError
private static native synchronized int nativeInit()
Throws:
UnsatisfiedLinkError
private static native synchronized int nativeSendMessage(String message)
Throws:
UnsatisfiedLinkError
public static void onCallback(int skypeID, String message)
This method is called by the dll when a skype message is received.
Parameters:
skypeID the ID of the Skype instance
message the message received
public static void onSkypeFound()
Called by the dll when a skype instance is found.
public boolean sendMessage(String message)
Class DeviceProfileReader
|
public class DeviceProfileReader
This class is ready to manage the profile information.
Since:
J2SDK1.5
Version:
ubi-UCAM 2.0 (ubiSensor)
Author:
Yoosoo Oh
| Field Summary |
public String |
Instance of String for the location of this computer that is installed Skype messanger |
public String |
Instance of String for the name of this computer that is installed Skype messanger |
| Constructor Summary |
public |
It initializes a newly DeviceProfileReader Object.
|
| Method Summary |
public String |
This method returns the IP address of this computer. |
public String |
This method returns the name of this computer. |
private void |
This method is to get the status of this computer.
|
public String |
This method is to get the user's login ID of this computer. |
public String com_location = null
Instance of String for the location of this computer that is installed Skype messanger
public String com_name2 = null
Instance of String for the name of this computer that is installed Skype messanger
public DeviceProfileReader()
It initializes a newly DeviceProfileReader Object.
public String getComputerAddress()
This method returns the IP address of this computer.
public String getComputerName()
This method returns the name of this computer.
private void GetPCStatus()
This method is to get the status of this computer.
Property: OS Name, Language, Login ID, Computer Name, IP Address, Computer Location
public String getUserName()
This method is to get the user's login ID of this computer.
public class JSkypeOut
Implements:
This class is ready to extract the status Skype messanger.
The MessageListenerInterface interface defines a method onMessageReceived suppose
to be called when notifications are received from run-time Skype Client.
Since:
J2SDK1.5
Version:
ubi-UCAM 2.0 (ubiSensor)
Author:
Yoosoo Oh
| Field Summary |
private Communicator |
Instance of Communicator Class for multicasting |
private String |
Instance of String for the current status of Skype messanger |
|
Instance of AbstractMessenger Class declare a messenger object to be used to send Skype commands |
private Context5W1H |
Instance of Context5W1H Class for Context Representation |
private String |
Instance of String for the previous status of Skype messanger |
|
Instance of DeviceProfileReader Class for the profile information |
private String |
Instance of String for the user's identity of Skype messanger |
| Constructor Summary |
public |
It initializes a newly JSkypeOut Object.
|
| Method Summary |
private void |
This method is to initialize the status of Preliminary Context. |
public void |
This method is to receive any notifications through JSkype. |
public void |
This method is to send the Skype API text command. |
public void |
This method is to send Preliminary Context to multicasting group. |
private Communicator COMM
Instance of Communicator Class for multicasting
private String curstatus
Instance of String for the current status of Skype messanger
Instance of AbstractMessenger Class declare a messenger object to be used to send Skype commands
private Context5W1H pcontext
Instance of Context5W1H Class for Context Representation
private String prestatus
Instance of String for the previous status of Skype messanger
Instance of DeviceProfileReader Class for the profile information
private String skypeID
Instance of String for the user's identity of Skype messanger
public JSkypeOut()
It initializes a newly JSkypeOut Object.
private void context_init()
This method is to initialize the status of Preliminary Context.
public void onMessageReceived(String rec_msg)
This method is to receive any notifications through JSkype.
Parameters:
rec_msg String: the received message from Skype
public void SendCommandMsg(String message)
This method is to send the Skype API text command.
Parameters:
message String: the command to be sended to Skype
public void sendContext()
This method is to send Preliminary Context to multicasting group.
Class StatusExtractorMain
|
public class StatusExtractorMain
This class is ready to extract a user's status (PC_Status & Skype_Status).
Since:
J2SDK1.5
Version:
ubi-UCAM 2.0 (ubiSensor)
Author:
Yoosoo Oh
| Inner Class Summary |
private final static class |
StatusExtractorMain.GetThread This class is Thread for JSkype & Sending Context (every 10 second). |
| Field Summary |
|
Instance of JSkypeOut Class |
private static boolean |
Instance of boolean for control Thread |
| Constructor Summary |
public |
It initializes a newly StatusExtractorMain Object.
|
| Method Summary |
private void |
This method is to get the status of Skype messanger. |
public void |
run() |
public static void |
This method is a main for UserStatusExtractor. |
Instance of JSkypeOut Class
private static boolean thread_flag
Instance of boolean for control Thread
public StatusExtractorMain()
It initializes a newly StatusExtractorMain Object.
private void GetJSkypeStaus()
This method is to get the status of Skype messanger.
public static void main(String args)
This method is a main for UserStatusExtractor.
Parameters:
args the command line arguments
Interface MessageListenerInterface
|
All Known Implementing Classes:
public interface MessageListenerInterface
Copyright (C) 2004 B. Lamot
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
Implement this listener when you want to be notified on received messages.
Use the Messenger.addListener(listener).
| Method Summary |
public void |
This method will be called when e message is received. |
public void onMessageReceived(String message)
This method will be called when e message is received.
Parameters:
message
Class Diagrams
Subpackages
Class Diagram net
Package Nodes
Class Diagrams
Subpackages
Class Diagram lamot
Package Nodes
Class Diagrams
Subpackages
Class Diagram java
Package Nodes
Package net.lamot.java.jskype
|
Class Diagrams
Subpackages
Class Diagram jskype
Package Nodes
Package net.lamot.java.jskype.general
|
Class Diagrams
Classes
Interfaces
Class Diagram general
Class Nodes
Interface Nodes
java.lang.Object
|
public abstract class AbstractMessenger
Extends:
java.lang.Object
| Field Summary |
private HashSet |
|
| Constructor Summary |
public |
|
| Method Summary |
public void |
|
public abstract void |
|
public abstract boolean |
|
protected final void |
|
public final void |
|
public abstract boolean |
|
private HashSet listeners
public AbstractMessenger()
public abstract void destroy()
public abstract boolean initialize()
protected final void onMessageReceived(String )
public abstract boolean sendMessage(String )
Interface MessageListenerInterface
|
public interface MessageListenerInterface
| Method Summary |
public void |
|
public void onMessageReceived(String )
Package net.lamot.java.jskype.windows
|
Class Diagrams
Classes
Class Diagram windows
Class Nodes
|
public class Messenger
Extends:
| Field Summary |
private static Vector |
|
|
|
| Constructor Summary |
public |
|
| Method Summary |
public void |
|
public boolean |
|
private static native synchronized int |
|
private static native synchronized int |
|
private static native synchronized int |
|
public static void |
|
public static void |
|
public boolean |
|
private static Vector listeners
public Messenger()
public void destroy()
public boolean initialize()
private static native synchronized int nativeDestroy()
private static native synchronized int nativeInit()
private static native synchronized int nativeSendMessage(String )
public static void onCallback(int , String )
public static void onSkypeFound()
public boolean sendMessage(String )
Class Diagrams
Subpackages
Class Diagram Resources
Package Nodes
Class Diagrams
Class Diagram lib
Package Resources.StatusProfile
|
Class Diagrams
Class Diagram StatusProfile