US20060294527A1 - Apparatus and method for interfacing hardware events with software events - Google Patents
Apparatus and method for interfacing hardware events with software events Download PDFInfo
- Publication number
- US20060294527A1 US20060294527A1 US11/435,359 US43535906A US2006294527A1 US 20060294527 A1 US20060294527 A1 US 20060294527A1 US 43535906 A US43535906 A US 43535906A US 2006294527 A1 US2006294527 A1 US 2006294527A1
- Authority
- US
- United States
- Prior art keywords
- event
- listener
- multicaster
- class
- component
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Abandoned
Links
- 238000000034 method Methods 0.000 title claims description 207
- 230000005540 biological transmission Effects 0.000 claims description 24
- 239000011800 void material Substances 0.000 description 166
- 230000003068 static effect Effects 0.000 description 50
- 230000008859 change Effects 0.000 description 43
- 235000006719 Cassia obtusifolia Nutrition 0.000 description 32
- 235000014552 Cassia tora Nutrition 0.000 description 32
- 244000201986 Cassia tora Species 0.000 description 32
- 230000000737 periodic effect Effects 0.000 description 11
- 238000011161 development Methods 0.000 description 9
- 230000008901 benefit Effects 0.000 description 8
- 238000013461 design Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 229940064452 artec Drugs 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 239000002244 precipitate Substances 0.000 description 2
- 235000010627 Phaseolus vulgaris Nutrition 0.000 description 1
- 244000046052 Phaseolus vulgaris Species 0.000 description 1
- 238000007792 addition Methods 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 150000001875 compounds Chemical class 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- RTZKZFJDLAIYFH-UHFFFAOYSA-N ether Substances CCOCC RTZKZFJDLAIYFH-UHFFFAOYSA-N 0.000 description 1
- 125000001033 ether group Chemical group 0.000 description 1
- 239000003292 glue Substances 0.000 description 1
- 238000010348 incorporation Methods 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 239000000047 product Substances 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
- 230000007958 sleep Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/542—Event management; Broadcasting; Multicasting; Notifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/543—Local
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/546—Xcast
Definitions
- Object-oriented computing languages have been developed and successfully used to develop a wide variety of software applications.
- One advantage of the object-oriented languages is the increased programming efficiency gained from the ability to reuse and/or modify prior-written code.
- C++ is one example of a well-known object-oriented computing language.
- Platform-independent computing languages have been created that, with the aid of an appropriate virtual machine, permit the same application code to be run in conjunction with a variety of different operating systems. Such languages promote efficiency by eliminating the need to develop a separate version of an application for each type of operating system expected to be encountered.
- JAVA is an example of a platform-independent computing language.
- JAVA is also an example of an object-oriented language.
- Component-based software architectures provide a system that can enhance the reusability advantage gained from object-oriented languages. Component-based software architectures achieve these gains by facilitating the connecting of two or more separate software components to form a new application.
- JavaBeans is an example of a component-based software architecture.
- Other types of component-based software architectures include, for example, Microsoft's COM, IBM's OpenDoc and Netscape's LiveConnect.
- a “source” or “event-generating” component fires an event to a “target” or “listener” component.
- An intermediary object often referred to as an “adapter,” facilitates the transaction.
- the adapter can be created by a builder tool at design time using a process known as introspection.
- the JavaBean component model is well suited for graphical and non-graphical software components for general-purpose computing systems.
- the JavaBean component model is not suitable, however, for embedded, time-critical or real time systems.
- JavaBean properties may be acceptable for such systems, JavaBean events are not. Accordingly, an event interface for an object-oriented component-based software architecture is needed that is suitable for an embedded, time-critical or real-time system. Further, a technique for multicasting events is needed.
- the present invention involves in part a system for interfacing a hardware interrupt-generating component with a software event handling system. Further, the specification discloses a software component model facilitating time-critical, real time or embedded applications. Also disclosed is a unique multicasting scheme that can notify one or more listener components of an event. It will be appreciated that the various inventions disclosed can be used independently of each other or in combination.
- FIG. 1 depicts a component model suitable for use in a time sensitive application.
- FIG. 2 depicts a transmission environment involving an event-generating software component, a single listener software component and a plurality of unused event multicaster objects.
- FIG. 3 depicts a multicast transmission environment involving an event-generating software component, an event multicaster object and two listener software components.
- FIG. 4 depicts a multicast transmission environment involving an event-generating software component, two event multicaster objects and three listener software components.
- FIG. 5 depicts a multicast transmission environment involving an event-generating software component, a plurality of event multicaster objects and a plurality of listener software components.
- FIG. 6 depicts an architecture interfacing a hardware device and client software, the architecture including a hardware driver, an interrupt controller component and a hardware event object.
- FIG. 1 depicts a component model suitable for use in a time sensitive application.
- an “event-generating software component” 100 can communicate with another software component, here referred to as a “listener software component” 102 , via an “event transmission object” 104 .
- the model described in relation to FIG. 1 and as further described throughout this specification provides a consistent interface between building blocks for, for example, real-time embedded applications.
- the event-generating software component 100 and the listener software component 102 can be software objects having properties that can be configured and accessed via setter and getter methods. Such configuration can be accomplished, for example, at design time via use of a development tool.
- the model also specifies events that can be sent from the event-generating software component 100 to the listener software component 102 .
- an event of interest When an event of interest occurs, it is packaged into an event transmission object 104 for delivery to one or more listener software components.
- a multicast communications system that can be used to communicate events is described in greater detail below.
- the development tool can examine the event-generating software component 100 and the listener software component 102 and create the appropriate event transmission object 104 to facilitate the communication.
- the JavaBean Component Architecture provides an architecture suitable for use with the present invention.
- the JavaBean Component Architecture provides a means to reuse software, which when combined with tool support, results in an increase in developer productivity. Further, recent advances in the Java 2 Platform, Micro Edition (J2ME) and the release of the Real-Time Specification for JAVA (RTSJ) enable achievement of productivity gains with real-time and embedded hardware device components.
- J2ME Java 2 Platform, Micro Edition
- RTSJ Real-Time Specification for JAVA
- the JavaBean Component Architecture has been used successfully for graphical applications using AWT and Swing components and has been used by third party software vendors to distribute reusable software components using standard packaging.
- the JavaBean model specifies properties that can configure the characteristics of the JavaBean from inside a development environment at design time. It also specifies events that are sent from the JavaBean to the application when an event of interest occurs. Further, the JavaBean component specification also includes support for “BeanInfo” files, and many development tools provide property editors to configure JavaBeans appropriately for the application under development.
- the JavaBean component model is well suited for graphical and non-graphical components for general-purpose computing systems.
- the JavaBeans event model is not well suited for time-critical or embedded systems.
- JavaBean properties are “get” and “set” methods that are used to configure the behavior of the component, both at design time by a development tool and at runtime by an application.
- the extra overhead associated with calling the “get” and “set” methods is minimal compared to the benefits gained. Additionally, such method call overhead is predictable. Consequently, JavaBean properties are acceptable for embedded and real-time applications without modification.
- JavaBean events include a listener interface that includes one or more methods that will be called when an event notification is sent to a listener.
- An application implements the interface and registers it with the JavaBean, which calls the event methods at the appropriate time.
- Each of these event methods must also include a parameter of type EventObject. When a component sends an event, it will create a descendent of EventObject, initialize it, and pass it as a parameter to each registered event listener.
- a second solution is to bypass the use of an EventObject and to instead pass data directly to the event handlers as primitive data types.
- This type of event can be described as a cracked event or a primitive event.
- This second solution delivers the maximum speed advantage.
- some currently available development tools for example, the Jbuilder tool by Borland
- Additional development tools may also support such events as the RTSJ becomes more accepted and widespread.
- the cracked events of the second-described solution can be unique for each software component and for each type of event that is sent. These “unique” events have the advantage of being more appropriately named, since each event can be descriptive and specific to one type of event.
- the cracked events can be made to be generic and can be reused for more than one software component and for more than one event in the same software component. These “generic” events require fewer class definitions than do the unique events and they are independent of any one component. This reduces the number of inner classes required to interface the software components and also reduces call overhead.
- Software components utilizing the generic-style of events can often be wired directly together in a pipeline fashion with little or no “glue code” required.
- aJile Real-Time Embedded Component model provides an example of a cracked event having no parameters.
- the aRTEC model is a newly available product of the assignee of the present application.
- Such an event can be sent by an event-generating software component 100 as an indicator that some physical condition has occurred. For example, it can be used to indicate a timeout or to indicate that a sensor-related threshold has been crossed. It can also be received to control some type of physical condition (for example, to set, reset or stop a timer or to activate or deactivate some other component controlling a physical event such as light or sound generation, etc.).
- the AssertEvent of the above-noted aRTEC model is an example of an event having a single Boolean parameter.
- Such an event can be sent to indicate a state change. For example, a True value in the parameter can indicate that a given state is active while a False value can indicate that the given state is inactive. (Of course, if desired, True can indicate an inactive state while False is used to indicate an active state.)
- This type of event can also be sent to control a physical condition.
- a listener software component 102 receiving the appropriate Boolean event via an event transmission object 104 can proceed to control a physical condition in response to the event.
- a lamp component could receive a Boolean event, such as the aRTEC AssertEvent that will cause it to turn a lamp on when, for example, a True value is passed and to turn the lamp off when a False value is passed.
- aRTEC AssertEvent such as the aRTEC AssertEvent that will cause it to turn a lamp on when, for example, a True value is passed and to turn the lamp off when a False value is passed.
- a third type of cracked event that can be used to implement the second solution is an event passing a numeric value.
- the DataEvent of the aRTEC model provides an example of an event having a single integer for its parameter. Such an event can be used when a numeric value is associated with an event. It can be used to indicate or control the degree of change in a physical condition. For example, a light level, sound level, position change, temperature change, rotation change, etc., etc., can be indicated by passing a numeric value as the parameter.
- a rotation sensor can use such an event, a DataEvent for example, when it detects a rotation of a hardware component. The rotation can be communicated, for example, by passing a value indicating the angle of rotation detected.
- aRTEC versions of these events are labeled respectively as DoubleEvent, LongEvent, FloatEvent, StringEvent and DoubleLongEvent.
- the aRTEC model is an extension of the JavaBean Component Architecture.
- the aRTEC setter and getter methods use the JavaBean naming convention.
- the aRTEC framework implements a direct extension of java.util.DataEventListener.
- Interface AssertEventListener is an event listener for changes from a mode, state, or object that can become asserted or de-asserted.
- Method Summary void assertEvent (boolean active). Informs observers of a mode change, state change, or any other change that can be considered as an object or physical abstraction changing from an asserted state to a non-asserted state or vice-versa.
- Method Detail public void assertEvent (Boolean active).
- aRTEC DataEventListener interface public interface DataEventListener
- Interface DataEventListener is an event listener for a fundamental int value. Used as an event listener when a dedicated event set is not warranted.
- Method Summary void dataEvent (int value). Informs observers of a state change that can be described as an int value.
- Method Detail public void dataEvent (int value). Informs observers of a state change that can be described as an int value. Parameters: value—the new data when a change occurs.
- DoubleEventListener interface public interface DoubleEventListener
- Interface DoubleEventListener is an event listener for a fundamental double value. Used as an event listener when a dedicated event set is not warranted.
- Method Summary void doubleEvent (double Value). Informs observers of a state change that can be described as a double value.
- Method Detail public void doubleEvent (double Value). Informs observers of a state change that can be described as a double value.
- Parameters Value—the new data when a change occurs.
- DoubleLongEventListener interface public interface DoubleLongEventListener
- Interface DoubleLongEventListener is an event listener for a compound double and long value. Used as an event listener when a dedicated event set is not warranted.
- Method Summary void doubleLongEvent (double doubleValue, long longvalue). Informs observers of a state change that can be described as a combined double and long value.
- Method Detail public void doubleLongEvent (double doubleValue, long longvalue). Informs observers of a state change that can be described as a combined double and long value.
- Parameters doubleValue—the new data when a change occurs, longvalue—a long value associated with the double value.
- Interface FloatEventListener is an event listener for a fundamental float value. Used as an event listener when a dedicated event set is not warranted.
- Method Summary void floatEvent (float value). Informs observers of a state change that can be described as a float value.
- Method Detail public void floatEvent (float value). Informs observers of a state change that can be described as a float value.
- Parameters value—the new data when a change occurs.
- aRTEC LongEventListener interface public interface LongEventListener
- Interface LongEventListener is an event listener for a fundamental long value. Used as an event listener when a dedicated event set is not warranted.
- Method Summary void longEvent (long value). Informs observers of a state change that can be described as a long value.
- Method Detail public void longEvent (long value). Informs observers of a state change that can be described as a long value.
- Parameters value—the new data when a change occurs.
- StringEventListener is an event listener for a String value. Used as an event listener when a dedicated event set is not warranted.
- Method Summary void stringEvent (java.lang.String value). Informs observers of new data that can be described as a String.
- Method Detail public void stringEvent (java.lang.String value). Informs observers of new data that can be described as a String. Parameters: value—the new data.
- aRTEC TriggerEventListener interface public interface TriggerEventListener
- Interface TriggerEventListener is an event listener for an action without associated data. Used as an event listener when a dedicated event set is not warranted.
- Method Summary void triggerEvent ( ). Informs observers of an action that can be described without data.
- Method Detail public void triggerEvent( ). Informs observers of an action that can be described without data.
- aRTEC AssertToTrigger public class AssertToTrigger; extends java.lang.Object; implements AssertEventListener
- AssertEventListener a component that converts an AssertEvent to one of two trigger events.
- One trigger event is fired for AssertEvents (true) and another is fired for AssertEvent (false).
- TriggerEventListener listener registers a TriggerEventListener to be notified when an assert with a negative value is received.
- TriggerEventListener listener registers a TriggerEventListener to be notified when an assert with a positive value is received.
- assertEvent assert input event
- TriggerEventListener listener unregisters a triggerEventListener so it will no longer receive an event when a negative assert is received.
- TriggerEventListener listener unregisters a triggerEventListener so it will no longer receive an event when a positive assert is received.
- assertEvent public void assertEvent (boolean value). Specified by: assertEvent in interface AssertEventListener. Parameters: active—indicates whether the mode is asserted or non-asserted.
- TriggerEventListener listener Registers a TriggerEventListener to be notified when an assert with a positive value is received. Parameters: listener—the receiver of the triggerEvent.
- TriggerEventListener listener public void addNegativeListener (TriggerEventListener listener). Registers a TriggerEventListener to be notified when an assert with a negative value is received. Parameters: listener—the receiver of the triggerEvent.
- aRTEC CallbackTimer component public class CallbackTimer; extends java.lang.Object; implements java.lang.Runnable).
- CallbackTimer creates and starts a new callback timer with a default thread priority of one greater than the calling thread.
- void callback long timeMillis, TriggerEventListener listener—registers a method to be called back at a specific time.
- boolean removeAndCallback long timeMillis, TriggerEventListener listener—registers a listener for a callback at a specific time and removes any pending callbacks in the queue.
- boolean removeCallback TriggerEventListener listener
- void setThreadPriority (int value)—sets the priority of the thread that sends events from this callback timer.
- CallbackTimer creates and starts a new callback timer with a default thread priority of one greater than the calling thread.
- a system callback timer can be created and reused by calling getlnstance ( ) instead of creating a dedicated callback timer using this method.
- aRTEC Counter component public class Counter; extends java.lang.Object; implements TriggerEventListener, AssertEventListener, DataEventListener), a component that provides an integer up/down counter.
- This class is a counter that will count up or down to a specified rollover value. It then rolls back and continues counting, or stops counting based on the Reload property. The class will send trigger events when a reload condition occurs, and send data events when the count changes.
- the counter can count up or down dependent on the countUp property. When counting up, counting will continue until the reload value ⁇ 1 is reached. On the next count, a trigger event is thrown and the counter reloads to 0. If the counter is configured to not reload, the timer will not be reset back to 0, but the trigger event will still be sent. The trigger event is latched internally so it will only be sent once, until the count does change.
- counting When counting down, counting will continue until 0 is reached. On the next count, a trigger event is thrown, and the counter reloads to 1 minus the reload value. If the counter is configured to no reload, the count will stay at 0, but the trigger event will still be sent. The trigger event is latched internally so it will only be sent once, until the count does change.
- This class can receive a trigger event. This will cause the counter to be incremented or decremented based on the countUp property. Further, this class can receive an assert event that will enable or disable the counter. If the received boolean value is true, the counter will be enabled. If it is false, the counter will be disabled. This class can also receive a date event that will force the count to a specific value.
- void addCountListener (DataEventListener listener)—registers a DataEventListener to receive an event containing the new count data when the count changes.
- TriggerEventListener listener registers a TriggerEventListener to receive a stateless event when the timer overflows.
- assertEvent (boolean value)—receives an assertEvent that will enable or disable the counter.
- void dataEvent (int value)—receives a dataEvent that will set the current count.
- boolean isCountup ( )—returns if the counter is counting up or down.
- void removeRolloverListener (TriggerEventListener listener)—unregisters a triggerEventListener so it will no longer receive an event on rollover.
- void reset ( ) resets the counter value.
- void setCount (int value)—sets the current count.
- void setCountUp (boolean value)—sets if the counter is counting up or down.
- void setEnabled (boolean value)—sets the enabled state of the counter.
- void setReload (boolean value)—sets if the counter will reload after the count reaches 0 if counting down or reload ⁇ 1 if counting up.
- void setReloadCount (int value)—sets the reload value of the counter.
- void triggerEvent ( )—receives a triggerEvent that will cause the counter to increment or decrement if enabled.
- TriggerEventListener listener Registers a TriggerEventListener to receive a stateless event when the timer overflows. If counting up, the event will be sent when the counter rolls back to zero. If counting down, the event will be sent when the counter reloads with the reload value. Parameters: listener—the receiver of the triggerEvent.
- triggerEvent public void triggerEvent ( ). Receives a triggerEvent that will cause the counter to increment or decrement if enabled. Specified by: triggerEvent in interface TriggerEventListener.
- TriggerEventListener getResetListener ( ). Returns a triggerEventListener that will cause the counter to reset to 0 if counting up and to reloadValue ⁇ 1 if counting down.
- aRTEC DataLookup component public class DataLookup; extends java.lang.Object; implements DataEventListener
- the received data event is used as an index into a table of constants to determine the sent value. If the input value is not in range, an output data event is not sent.
- void addDataListener (DataEventListener listener)—registers a DataEventListener to be notified when a data event is received.
- void dataEvent (int value)—looks up data in the table based on the passed index.
- aRTEC OneShotTimer component public class OneShotTimer; extends java.lang.Object: implements TriggerEventListener
- a trigger event is sent to indicate that the time has elapsed and the timer waits to be started again. If the timer has been started but has not yet expired, it is considered to be running. If the timer is restarted while it is running, the timer starts over, effectively extending the time delay.
- the one shot When the one shot is started, it sends an assertEvent with true as the value to indicate that it is running. When the time expires, it sends an assertEvent with false as the parameter to indicate that the timer is no longer running. At that time, a triggerEvent is also sent.
- the one shot timer can receive one triggerEvent to start the timer and one triggerEvent to stop the timer.
- a trigger event sent to this object will start the timer.
- this class can only implement the triggerEventListener once, an inner class is used to provide a triggerEventListener listener that will stop the timer when a trigger event is received.
- OneShotTimer ( ). Creates a lightweight one shot timer component.
- void addRunningListener (AssertEventListener listener)—registers an AssertEventListener to be notified true when the one shot starts and notified false when the one shot completes.
- TriggerEventListener listener registers a TriggerEventListener to receive a stateless event when the one shot time expires.
- void removeTimerListener (TriggerEventListener listener)—unregisters a triggerEventListener so it will no longer receive an event on timeout.
- void setIntervalMillis (int value)—sets the time interval of the timer in milliseconds.
- void start ( ) starts the one shot timer.
- void stop ( ) stops the timer.
- void triggerEvent ( )—receives a trigger event that will start the timer.
- OneShotTimer public OneShotTimer ( ). Creates a lightweight one shot timer component.
- TriggerEventListener listener Registers a TriggerEventListener to receive a stateless event when the one shot time expires. Parameters: listener—the receiver of the triggerEvent.
- triggerEvent public void triggerEvent ( ). Receives a trigger event that will start the timer. This method is functionally identical to start ( ). Specified by: triggerEvent in interface TriggerEventListener.
- TriggerEventListener getStopListener ( ). Returns a TriggerEventListener that will stop the one shot. In order to start it again, it must be restarted which will reset the time interval.
- the OneShotTimer component can receive two unique trigger events to start or stop the timer. Because a triggerEventListener is an interface, the PeriodicTimer component can only directly receive one triggerEvent. This default trigger event will start the timer.
- An innerclass that implements the triggerEventListener interface is used to stop the timer. You can get a reference to this inner classes and register it as an event listener. This method returns a reference to the inner class that will stop the timer. Returns: a reference to a triggerEventListener that will stop the timer.
- the following describes the ARTEC PeriodicTimer component public class PeriodicTimer; extends java.lang.Object; implements AssertEventListener, TriggerEventListener, java.lang.Runnable), a clock component that generates a periodic stream of trigger events.
- This component can use a standard java thread, or a real-time periodic thread to generate events at a periodic rate. Its period and priority can be set.
- a TriggerEventListener can register to receive trigger events at a periodic rate. The component can be disabled which will not stop the timer but will prevent events from being thrown.
- the periodic timer can receive an Assert event that will enable or disable the timer. It can also receive trigger events to start or stop the timer. A trigger event sent to this object will start the timer. Because this class can only implement the triggerEventListener once, an inner class is used to provide a triggerEventListener listener that will stop the PeriodicTimer when a trigger event is received. Constructor Summary Related to the PeriodicTimer Class: PeriodicTimer ( ).
- TriggerEventListener listener registers a TriggerEventListener to receive a stateless event on a periodic basis.
- assertEvent (boolean value)—enables or disables the timer.
- int getThreadPriority ( )—sets the priority of the thread that generates trigger events.
- void removePeriodicListener TriggerEventListener listener—unregisters a triggerEventListener so it will no longer receive an event on a periodic basis void run ( )—internal use only.
- void setEnabled (boolean value)—enables or disables the PeriodicTimer to throw events.
- void setIntervalMillis (int value)—sets the period in milliseconds.
- void setThreadPriority (int value)—returns the priority of the thread that generates trigger events.
- void start ( ) starts the periodic timer.
- void stop ( ) stops the timer.
- void triggerEvent ( )—starts the timer.
- PeriodicTimer public PeriodicTimer ( ).
- PeriodicTimer Class for isEnabled public boolean isEnabled ( ). Returns if the PeriodicTimer will throw events. The PeriodicTimer can be enabled or disabled. This does not change or delay the processing of events. The internal clock still runs, but events will not be thrown.
- PeriodicTimer can be enabled or disabled. This does not change or delay the processing of events. The internal clock still runs, but events will not be thrown.
- TriggerEventListener listener Registers a TriggerEventListener to receive a stateless event on a periodic basis. Parameters: listener—the receiver of the AssertEvent.
- assertEvent public void assertEvent (boolean value). Enables or disables the timer. Note that the clock does not stop based on the enabled status, but trigger events will not be thrown. Specified by: assertEvent in interface AssertEventListener. Parameters: active—whether the mode is asserted or non-asserted.
- triggerEvent public void triggerEvent ( ). Starts the timer. This class can receive generic trigger events. Specified by: triggerEvent in interface TriggerEventListener.
- TriggerEventListener getStopListener ( ). Returns a TriggerEventListener that will stop the timer when an event is received.
- the PeriodicTimer component can receive two unique trigger events to start or stop the timer. Because a triggerEventListener is an interface, the PeriodicTimer component can only directly receive one triggerEvent. This default trigger event will start the timer. An innerclass that implement the triggerEventListener interface is used to stop the timer. You can get a reference to this inner class and register it as an event listener. This method returns a reference to the inner class that will stop the timer. Returns: a reference to a triggerEventListener that will stop the timer.
- the following describes the ARTEC PushButton component public class PushButton; extends java.lang.Object; implements TriggerEventListener, a component that controls and debounces a pushbutton switch wired to a GPIO pin.
- This class is similar in functionality to a GpioPin but it additionally includes pin debouncing. A debounceTime is specified. The pin must be in a stable state for this period of time before the change is registered in this class.
- this class can send a triggerEvent when the state rises, falls, or both. Unlike the GpioPin, this class will send an assertEvent whenever the state changes with the state reflected in the passed value. So the report policy will only affect the triggerEvent and not the assertEvent in this class.
- static int TRIGGER OFF causes the pushButton to no longer generate any trigger events
- static int TRIGGER ON_PUSH causes the pushButton to send a trigger event only when the button is pushed.
- PushButton creates an instance of a PushButton that has control over one GpioPin on an aJile Systems aJ-100 microcontroller.
- the pin ID property must be set at a later time before the PushButton can be used.
- PushButton creates an instance of an object that controls one IO pin.
- void addStateListener (AssertEventListener listener)—registers an AssertEventListener to receive an event when any state change occurs and has stabilized.
- TriggerEventListener listener registers a TriggerEventListener to receive a stateless event when a pin has changed states and stabilized.
- TriggerEventListener listener unregisters a triggerEventListener so it will no longer receive an event when a pin state change occurs.
- void setDebounceTime (int millis)—sets the time in milliseconds that a button must be stable before interrupts will be generated.
- void setPinID (int pinID)—sets the processor bit that will be controlled by this GpioPin object.
- each pin can be a positive or negative assertion logic.
- void setTriggerReportPolicy (int value)—sets the condition for sending triggerEvents to report a button Press or release. It will not affect assertEvents which will always be sent regardless of the triggerReportPolicy.
- void triggerEvent internal use only method to receive events from the underlying GpioPin.
- PushButton creates an instance of a PushButton that has control over one GpioPin on the microcontroller.
- the pin ID property must be set at a later time before the PushButton can be used.
- PushButton creates an instance of an object that controls one IO pin of the microcontroller.
- PushButton.TRIGGER_OFF PushButton.TRIGGER_ON_PUSH
- PushButton.TRIGGER_ON_RELEASE PushButton.TRIGGER_ON_RELEASE
- PushButton.TRIGGER_ON_PUSH_AND_RELEASE Parameters: value—the condition to generate trigger events.
- TriggerEventListener listener Registers a TriggerEventListener to receive a stateless event when a pin has changed states and stabilized. Events will be generated according the TriggerReportPolicy currently in place. Parameters: listener—the receiver of the TriggerEvent.
- aRTEC Switch component public class Switch; extends java.lang.Object; implements AssertEventListener, TriggerEventListener
- the listener to receive the trigger event is determined by the state of the switch.
- the state of the switch can be set through properties or by receiving an Assert event.
- the switch state is ether true or false.
- Switch ( ) Constructor Summary Related to the Switch Class: Switch ( ).
- TriggerEventListener listener registers a TriggerEventListener to be notified when an input trigger is received and the switch is in the false state.
- TriggerEventListener listener registers a TriggerEventListener to be notified when an input trigger is received and the switch is in the true state
- assertEvent (boolean value)—receives an Assert event that will set the switch state.
- TriggerEventListener listener unregisters a triggerEventListener so it will no longer receive an event.
- TriggerEventListener listener unregisters a triggerEventListener so it will no longer receive an event.
- void setState (boolean value)—explicitly sets the switch state.
- void triggerEvent ( )—receives a trigger event that will be relayed on to one of two trigger event listeners based on the switch state.
- TriggerEventListener listener Registers a TriggerEventListener to be notified when an input trigger is received and the switch is in the true state. Parameters: listener—the receiver of the triggerEvent.
- TriggerEventListener listener Registers a TriggerEventListener to be notified when an input trigger is received and the switch is in the false state. Parameters: listener—the receiver of the triggerEvent.
- aRTEC TriggerData component public class TriggerData; extends java.lang.Object; implements TriggerEventListener, a component that sends a data event with a preset value whenever a trigger event is received.
- TriggerData ( ).
- void addDataListener (DataEventListener listener)—registers a DataEventListener to be notified when a trigger event is received.
- void setDataValue (int value)—sets the value that will be passed in the data event.
- void triggerEvent ( )—sends a data event with the preset value.
- TriggerData public TriggerData ( ).
- TriggerData Class for triggerEvent public void triggerEvent ( ). Sends a data event with the preset value. Specified by: triggerEvent in interface TriggerEventListener.
- aRTEC TriggerToAssert component public class TriggerToAssert; extends java.lang.Object; implements TriggerEventListener
- TriggerEventListener a component that converts two Trigger input events to one Assert output event.
- An assertEvent is fired whenever a trigger input event is received. True is passed when the positive trigger event is received and false is passed when the negative trigger event is received.
- the class itself implements the positive trigger listener. You must call getNegativeTriggerListener to get a listener for trigger events that will send negative assert events.
- TriggerToAssert ( ).
- TriggerEventListener getNegativeTriggerListener ( )—returns a TriggerEventListener that will send an assert event with a false value.
- void triggerEvent ( )—sends an assert event with a true value.
- TriggerToAssert Class public TriggerToAssert ( ).
- TriggerToAssert Class for triggerEvent public void triggerEvent ( ). Sends an assert event with a true value. Specified by: triggerEvent in interface TriggerEventListener.
- TriggerEventListener getNegativeTriggerListener( ). Returns a TriggerEventListener that will send an assert event with a false value.
- An event-generating software component 100 can send an event in a unicast or a multicast manner. In a unicast transmission, the event-generating software component 100 sends an event to a single listener software component 102 . In a multicast transmission, the event-generating software component 100 can send the same event to more than one listener software components. Events that are sent in a multicast manner are referred to as multicast events.
- listener software components register to receive a particular type event or events.
- a JavaBean can be set up to transmit events in a unicast or in a multicast manner.
- JavaBeans store a vector of the registered listeners. When the related event occurs, the vector is traversed and the multicast event is sent to each of the registered listeners.
- An event multicaster object is an event listener that relays the event to two additional listeners. If one of the additional listeners is also an event multicaster object, the event is relayed to two more listeners. In this manner any number of listeners can be registered without the use of a vector.
- the use of the event multicaster objects is hidden behind the event registration methods.
- event multicaster objects instead of a vector provides benefits when in a time-sensitive environment.
- the event can be sent by a single interface call without the looping and overhead associated with the vector approach.
- the event will be routed through multiple multicasters thereby creating additional overhead. It will be rare, however, to have a situation where enough listeners are registered to create more overhead than would be created by traversing a vector.
- event multicaster objects can be reusable.
- Implementing reusable event multicaster objects eliminates the overhead that would be associated with the creation of new multicasters.
- Pre-existing event multicaster objects are simply put into service as needed when new listener software components are registered (added). When a listener software component or components are to be removed, the appropriate multicaster(s) are taken out of service and are again available for reuse when a listener is added. Further, in one embodiment, listener software components are added only at the end of the tree structure.
- FIGS. 2 through 5 depict features related to the functioning and structure of the multicast system of the present invention.
- FIG. 2 depicts a transmission environment including an event-generating software component 200 , a single listener software component 202 and a plurality of unused event multicaster objects, three of which ( 204 , 206 , 208 ) are specifically depicted.
- the listener software component 202 includes code 210 to be executed upon receiving an event notification of an event for which it has registered.
- an event multicaster object 204 , 206 , 208 is not needed and they consequently remain unused.
- FIG. 3 depicts a multicast transmission environment involving an event-generating software component 300 , an event multicaster object 302 and two listener software components 304 , 306 , and a plurality of unused event multicaster objects 308 , 310 , 312 .
- the unused Event Multicaster Objects are not specifically depicted in FIGS. 1, 4 and 5 , but they can be used and included in the same manner in those figures.
- the event multicaster object 302 includes a first storage location 314 referencing one of the event listener components 304 and a second storage location 316 referencing the other event listener component 306 .
- the first listener software component to register (for example the listener software component 202 , FIG. 2 ) is the listener software component 304 referenced by the first storage location 314 and the next listener software component to register is the listener software component referenced by the second storage location 316 .
- Each of the listener software components 304 , 306 includes code 318 , 320 to be executed upon receiving an event notification of an event for which it has registered.
- FIG. 4 depicts a multicast transmission environment involving an event-generating software component 400 , two event multicaster objects 402 , 404 and three listener software components 406 , 408 , 410 .
- An additional event multicaster object 404 is needed to reference the third listener software component 410 .
- the second event multicaster object 402 includes a first storage location 412 referencing the first event multicaster object 402 and a second storage location 414 referencing the third event listener component 410 .
- Each of the listener software components 406 , 408 , 410 includes code 416 , 418 , 420 to be executed upon receiving an event notification of an event for which it has registered.
- the first listener software component to register is listener software component 406
- the second to register takes the position of listener software component 408
- the third to register is listener software component 410 .
- FIG. 5 depicts a multicast transmission environment involving an event-generating software component 500 , a plurality of event multicaster objects 502 , 504 and a plurality of listener software components, three of which ( 506 , 508 , 510 ) are specifically depicted.
- each event multicaster object with the exception of the first event multicaster object 502 , will reference one listener software component and one event multicaster object.
- Each listener software component can include code 512 , 514 , 516 to be executed upon receiving an event notification of an event for which it has registered.
- the various listener software components can be added to the structure according to the order in which they are registered. Further, if desired, when a listener software component is to be removed from the structure, the structure can be reconstituted. Alternatively, removal of a listener software component can be accomplished by simply deleting the reference to it in the event multicaster object with which it is related. Finally, in one embodiment, when an event is communicated through any of the structures of FIGS. 3 through 5 , it can be sent first to the first registered listener software component (for example the listener software component 506 , FIG. 5 ) and then to the next registered listener software component (for example the listener software component 508 , FIG. 5 ) and so forth to each of the other listener software components in the order in which they were registered as listeners.
- the first registered listener software component for example the listener software component 506 , FIG. 5
- the next registered listener software component for example the listener software component 508 , FIG. 5
- Class AssertEventMulticaster is an event multicaster for the event AssertEvent. Each instance branches to two listeners. Includes static helper routines for adding and removing listeners to the event throwing class.
- AssertEventListener remove (AssertEventListener node, AssertEventListener listener). Helper routine for any removeAssertEventListener routine. Removes multicaster nodes as necessary to support “n-1” event listeners. The class throwing the AssertEvent should have one reference to a listener and treat it like a unicast event. The add and remove methods should be used to maintain a transparent tree of multicasters to support multiple listeners. Parameters: node—the current value of the topmost event listener; listener—to remove from the multicast tree. Returns: the replacement node for the topmost event listener.
- assertEvent boolean active
- the event listener Relays the passed event to two children listeners.
- assertEvent in interface AssertEventListener Parameters: source—the mode or state that is changing; active—if the mode is becoming active or inactive.
- Class DataEventMulticaster is an event multicaster for the event DataEvent. Each instance branches to two listeners. Includes static helper routines for adding and removing listeners to the event throwing class.
- Method Detail 1) public static DataEventListener add (DataEventListener node, DataEventListener listener). Helper routine for any addDataEventListener routine. Adds multicaster nodes as necessary to support “n” event listeners. The class throwing the DataEvent should have one reference to a listener and treat it like a unicast event. The add and remove methods should be used to maintain a transparent tree of multicasters to support multiple listeners. Parameters: node—the current value of the topmost event listener; listener—the new single event listener to add to the tree. Returns: the replacement node for the topmost event listener.
- DoubleLongEventlulticaster class public class DoubleLongEventMulticaster; extends java.lang.Object; implements DoubleLongEventListener
- Class DoubleLongEventMulticaster is an event multicaster for the event DoubleLongEvent. Each instance branches to two listeners. Includes static helper routines for adding and removing listeners to the event throwing class.
- DoubleLongEventListener add DoubleLongEventListener node, DoubleLongEventListener listener. Helper routine for any addDoubleLongEventListener routine. 2) void doubleLongEvent (double doublevalue, long longvalue). The event listener. 3) static DoubleLongEventListener remove (DoubleLongEventListener node, DoubleLongEventListener listener). Helper routine for any removeDoubleLongEventListener routine.
- DoubleLongEventListener add DoubleLongEventListener node, DoubleLongEventListener listener.
- Helper routine for any addDoubleLongEventListener routine Adds multicaster nodes as necessary to support “n” event listeners.
- the class throwing the DoubleLongEvent should have one reference to a listener and treat it like a unicast event.
- the add and remove methods should be used to maintain a transparent tree of multicasters to support multiple listeners. Parameters: node—the current value of the topmost event listener; listener—the new single event listener to add to the tree. Returns: the replacement node for the topmost event listener.
- DoubleLongEventListener remove DoubleLongEventListener node, DoubleLongEventListener listener. Helper routine for any removeDoubleLongEventListener routine. Removes multicaster nodes as necessary to support “n-1” event listeners. The class throwing the DoubleLongEvent should have one reference to a listener and treat it like a unicast event. The add and remove methods should be used to maintain a transparent tree of multicasters to support multiple listeners. Parameters: node—the current value of the topmost event listener; listener—to remove from the multicast tree. Returns: the replacement node for the topmost event listener.
- DoubleLongEventListener Parameters: source—the mode or state that is changing, active—if the mode is becoming active or inactive.
- DoubleEventMulticaster is an event multicaster for the event DoubleEvent. Each instance branches to two listeners. Includes static helper routines for adding and removing listeners to the event throwing class.
- DoubleEventListener add DoubleEventListener node, DoubleEventListener listener. Helper routine for any addDoubleEventListener routine. 2) void doubleEvent (double value). The event listener. 3) static DoubleEventListener remove (DoubleEventListener node, DoubleEventListener listener). Helper routine for any removeDoubleEventListener routine.
- DoubleEventListener add DoubleEventListener node, DoubleEventListener listener. Helper routine for any addDoubleEventListener routine. Adds multicaster nodes as necessary to support “n” event listeners. The class throwing the DoubleEvent should have one reference to a listener and treat it like a unicast event. The add and remove methods should be used to maintain a transparent tree of multicasters to support multiple listeners. Parameters: node—the current value of the topmost event listener; listener—the new single event listener to add to the tree. Returns: the replacement node for the topmost event listener.
- DoubleEventListener remove DoubleEventListener node, DoubleEventListener listener. Helper routine for any removeDoubleEventListener routine. Removes multicaster nodes as necessary to support “n-1” event listeners. The class throwing the DoubleEvent should have one reference to a listener and treat it like a unicast event. The add and remove methods should be used to maintain a transparent tree of multicasters to support multiple listeners. Parameters: node—the current value of the topmost event listener; listener—to remove from the multicast tree. Returns: the replacement node for the topmost event listener.
- DoubleEventListener Parameters: source—the mode or state that is changing, active—if the mode is becoming active or inactive.
- Class FloatEventMulticaster is an event multicaster for the event FloatEvent. Each instance branches to two listeners. Includes static helper routines for adding and removing listeners to the event throwing class.
- Method Detail 1) public static FloatEventListener add (FloatEventListener node, FloatEventListener listener). Helper routine for any addFloatEventListener routine. Adds multicaster nodes as necessary to support “n” event listeners. The class throwing the FloatEvent should have one reference to a listener and treat it like a unicast event. The add and remove methods should be used to maintain a transparent tree of multicasters to support multiple listeners. Parameters: node—the current value of the topmost event listener; listener—the new single event listener to add to the tree. Returns: the replacement node for the topmost event listener.
- Class LongEventMulticaster is an event multicaster for the event LongEvent. Each instance branches to two listeners. Includes static helper routines for adding and removing listeners to the event throwing class.
- Method Summary 1) static LongEventListener add (LongEventListener node, LongEventListener listener). Helper routine for any addLongEventListener routine. 2) void longEvent (long value). The event listener. 3) static LongEventListener remove (LongEventListener node, LongEventListener listener). Helper routine for any removeLongEventListener routine.
- Method Detail 1) public static LongEventListener add (LongEventListener node, LongEventListener listener). Helper routine for any addLongEventListener routine. Adds multicaster nodes as necessary to support “n” event listeners. The class throwing the LongEvent should have one reference to a listener and treat it like a unicast event. The add and remove methods should be used to maintain a transparent tree of multicasters to support multiple listeners. Parameters: node—the current value of the topmost event listener; listener—the new single event listener to add to the tree. Returns: the replacement node for the topmost event listener.
- LongEventListener remove (LongEventListener node, LongEventListener listener). Helper routine for any removeLongEventListener routine. Removes multicaster nodes as necessary to support “n-1” event listeners. The class throwing the LongEvent should have one reference to a listener and treat it like a unicast event. The add and remove methods should be used to maintain a transparent tree of multicasters to support multiple listeners. Parameters: node—the current value of the topmost event listener; listener—to remove from the multicast tree. Returns: the replacement node for the topmost event listener.
- longEvent long value
- the event listener Relays the passed event to two children listeners.
- longEvent in interface LongEventListener Parameters: source—the mode or state that is changing; active—if the mode is becoming active or inactive.
- StringEventMulticaster public class StringEventMulticaster; extends java.lang.Object; implements StringEventListener
- Class StringEventMulticaster is an event multicaster for the event StringEvent. Each instance branches to two listeners. Includes static helper routines for adding and removing listeners to the event throwing class.
- Method Summary 1) static StringEventListener add (StringEventListener node, StringEventListener listener). Helper routine for any addStringEventListener routine. 2) static StringEventListener remove (StringEventListener node, StringEventListener listener). Helper routine for any removeStringEventListener routine. 3) void stringevent (java.lang.String value). The event listener.
- Method Detail 1) public static StringEventListener add (StringEventListener node, StringEventListener listener). Helper routine for any addStringEventListener routine. Adds multicaster nodes as necessary to support “n” event listeners. The class throwing the StringEvent should have one reference to a listener and treat it like a unicast event. The add and remove methods should be used to maintain a transparent tree of multicasters to support multiple listeners. Parameters: node—the current value of the topmost event listener; listener—the new single event listener to add to the tree. Returns: the replacement node for the topmost event listener.
- TriggerEventMulticaster is an event multicaster for the event TriggerEvent. Each instance branches to two listeners. Includes static helper routines for adding and removing listeners to the event throwing class.
- TriggerEventListener add TriggerEventListener node, TriggerEventListener listener. Helper routine for any addTriggerEventListener routine. Adds multicaster nodes as necessary to support “n” event listeners. The class throwing the TriggerEvent should have one reference to a listener and treat it like a unicast event. The add and remove methods should be used to maintain a transparent tree of multicasters to support multiple listeners. Parameters: node—the current value of the topmost event listener; listener—the new single event listener to add to the tree. Returns: the replacement node for the topmost event listener.
- TriggerEventListener remove TriggerEventListener node, TriggerEventListener listener. Helper routine for any removeTriggerEventListener routine. Removes multicaster nodes as necessary to support “n-1” event listeners. The class throwing the TriggerEvent should have one reference to a listener and treat it like a unicast event. The add and remove methods should be used to maintain a transparent tree of multicasters to support multiple listeners. Parameters: node—the current value of the topmost event listener; listener—to remove from the multicast tree. Returns: the replacement node for the topmost event listener.
- TriggerEventListener Parameters: source—the mode or state that is changing; active—if the mode is becoming active or inactive.
- each of the EventMulticaster classes maintains a list of the EventListeners registered to receive notification of the occurrence of the particular event. As new EventListeners are added, the new elements appear on the appropriate EventMulticaster list. As EventListeners are removed, the event multicaster objects are added to a listing of free nodes so as to avoid garbage collection generation. Subsequent listener additions will reuse any event multicaster objects that have been made available as a result of previous removals. To invoke any of the multicast events, the appropriate EventMulticaster calls the appropriate Event( ) methods of the related EventListeners starting with the first listener software component added and proceeding in order to the last listener software component registered. A communication of an event with only a single registered event listener component is actually implemented as a multicast that has just a single listener on the multicast list.
- FIG. 6 depicts an architecture for interfacing a hardware device and client software, the architecture including a hardware device 600 , an interrupt controller component 602 and a hardware event object 604 .
- the hardware component 600 can be any of a wide variety of such components.
- the hardware device 600 can be a button, key, or any other such input or signaling device. It can also be a pin of an interface. For example, it can be a pin of a General Purpose digital Input/Output (GPIO) port.
- GPIO General Purpose digital Input/Output
- the signal from the hardware device 600 is passed to the interrupt controller component 602 and the interrupt controller triggers the appropriate interrupt method 605 from its interrupt vector table and communicates 606 it to the hardware event object 604 .
- the properties 610 of the hardware event object 604 can be set and retrieved via setter 612 and getter 614 methods.
- the properties 610 include PinID, PinState, OutputPin, PinReportPolicy and ReportThread.
- the hardware event object 604 includes a first-in-first-out (FIFO) data structure 616 and a dispatch thread 618 .
- the interrupt can eventually precipitate the sending of a software event to the appropriate user event handlers of the registered listener software components. Since it is often not desirable to send these events at an interrupt priority level, a dispatch thread 618 is included. The dispatch thread 618 can wait for the state change and then send an event notification to user code at a priority level that is lower than the original interrupt priority level.
- the interrupt event 606 Upon receipt by the hardware event object, the interrupt event 606 is communicated directly to the dispatch thread 618 to wake it up if necessary. The interrupt event 606 is also placed into the FIFO queue 616 . The dispatch thread 618 then works through and services each received interrupt event 606 in the order in which it was received. As it services each of the interrupt events received from the FIFO 616 , the dispatch thread 618 causes the appropriate software events to be generated and output 620 .
- the dispatch thread 618 is a thread that sleeps until some event requiring servicing is received. It is awakened by an invocation of its wake method (upon receipt of an interrupt event for example) and it will then service the tasks until each has been completed. It is usually desirable to give the dispatch thread 618 an elevated priority level (for example one higher than any calling thread). Once awakened, the dispatch thread will poll all registered listeners and service them if required.
- each pin state change will thus by forwarded to the hardware event object 604 and placed into the FIFO 616 .
- the dispatch thread 618 will service each interrupt event by forwarding it as a software event to each of the event's registered listeners.
- each pin of the port would be associated with a dedicated interrupt method and hardware event object.
- the default is to use one dispatch thread for all of the GPIO pins. If, however, different priorities are required for different pins, a new dispatch thread can be assigned to each pin.
- the architecture of FIG. 6 can be used with the model disclosed in relation to FIG. 1 or as disclosed in FIGS. 1 though 5 .
- the software event output 620 from the hardware event object 604 can be a cracked event. Further, the outputted cracked event, if desired, can then be multicasted in the manner disclosed in FIGS. 2 through 5 .
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
An apparatus for associating a hardware event with a software component event. The system includes a hardware interrupt signal input. It also includes a first-in-first-out data structure coupled with the hardware interrupt signal input. Further included is a dispatch thread component coupled with the first-in-first-out data structure. The dispatch thread component can output a software event.
Description
- This application is a continuation of U.S. application Ser. No. 10/093,952, filed Mar. 7, 2002, said application Ser. No. 10/093,952 in turn claims the benefit of U.S. Provisional Application No. 60/273,858, filed Mar. 7, 2001. The entire specification of U.S. Provisional Application No. 60/273,858, filed Mar. 7, 2001, including all text and drawing figures is hereby incorporated herein by this reference. Also, the entire specification of U.S. application Ser. No. 10/093,952, filed Mar. 7, 2002, including all text and drawing figures is hereby incorporated herein by this reference.
- Object-oriented computing languages have been developed and successfully used to develop a wide variety of software applications. One advantage of the object-oriented languages is the increased programming efficiency gained from the ability to reuse and/or modify prior-written code. C++ is one example of a well-known object-oriented computing language.
- Platform-independent computing languages have been created that, with the aid of an appropriate virtual machine, permit the same application code to be run in conjunction with a variety of different operating systems. Such languages promote efficiency by eliminating the need to develop a separate version of an application for each type of operating system expected to be encountered. JAVA is an example of a platform-independent computing language. JAVA is also an example of an object-oriented language.
- Component-based software architectures provide a system that can enhance the reusability advantage gained from object-oriented languages. Component-based software architectures achieve these gains by facilitating the connecting of two or more separate software components to form a new application. JavaBeans is an example of a component-based software architecture. Other types of component-based software architectures include, for example, Microsoft's COM, IBM's OpenDoc and Netscape's LiveConnect.
- In the JavaBean architecture, software components (“beans”) communicate via “events.” A “source” or “event-generating” component fires an event to a “target” or “listener” component. An intermediary object, often referred to as an “adapter,” facilitates the transaction. The adapter can be created by a builder tool at design time using a process known as introspection.
- The JavaBean component model is well suited for graphical and non-graphical software components for general-purpose computing systems. The JavaBean component model is not suitable, however, for embedded, time-critical or real time systems. Although JavaBean properties may be acceptable for such systems, JavaBean events are not. Accordingly, an event interface for an object-oriented component-based software architecture is needed that is suitable for an embedded, time-critical or real-time system. Further, a technique for multicasting events is needed.
- Additionally, recent advances (for example, the JAVA 2 Platform, Micro Edition and the Real-Time Specification for JAVA) have facilitated similar efficiency gains to be achieved with real-time and embedded hardware driver components. Now, what is further needed is an apparatus for associating a hardware interrupt event with a software component event. Currently existing systems, such as C++, JavaBeans, and Microsoft's COM for example, do not meet the “timely delivery” and memory consumption requirements of time-sensitive and embedded applications.
- The present invention involves in part a system for interfacing a hardware interrupt-generating component with a software event handling system. Further, the specification discloses a software component model facilitating time-critical, real time or embedded applications. Also disclosed is a unique multicasting scheme that can notify one or more listener components of an event. It will be appreciated that the various inventions disclosed can be used independently of each other or in combination.
-
FIG. 1 depicts a component model suitable for use in a time sensitive application. -
FIG. 2 depicts a transmission environment involving an event-generating software component, a single listener software component and a plurality of unused event multicaster objects. -
FIG. 3 depicts a multicast transmission environment involving an event-generating software component, an event multicaster object and two listener software components. -
FIG. 4 depicts a multicast transmission environment involving an event-generating software component, two event multicaster objects and three listener software components. -
FIG. 5 depicts a multicast transmission environment involving an event-generating software component, a plurality of event multicaster objects and a plurality of listener software components. -
FIG. 6 depicts an architecture interfacing a hardware device and client software, the architecture including a hardware driver, an interrupt controller component and a hardware event object. -
FIG. 1 depicts a component model suitable for use in a time sensitive application. InFIG. 1 , an “event-generating software component” 100 can communicate with another software component, here referred to as a “listener software component” 102, via an “event transmission object” 104. The model described in relation toFIG. 1 and as further described throughout this specification provides a consistent interface between building blocks for, for example, real-time embedded applications. - The event-
generating software component 100 and thelistener software component 102 can be software objects having properties that can be configured and accessed via setter and getter methods. Such configuration can be accomplished, for example, at design time via use of a development tool. The model also specifies events that can be sent from the event-generatingsoftware component 100 to thelistener software component 102. - When an event of interest occurs, it is packaged into an
event transmission object 104 for delivery to one or more listener software components. A multicast communications system that can be used to communicate events is described in greater detail below. The development tool can examine the event-generating software component 100 and thelistener software component 102 and create the appropriateevent transmission object 104 to facilitate the communication. - The JavaBean Component Architecture provides an architecture suitable for use with the present invention. The JavaBean Component Architecture provides a means to reuse software, which when combined with tool support, results in an increase in developer productivity. Further, recent advances in the Java 2 Platform, Micro Edition (J2ME) and the release of the Real-Time Specification for JAVA (RTSJ) enable achievement of productivity gains with real-time and embedded hardware device components.
- The JavaBean Component Architecture has been used successfully for graphical applications using AWT and Swing components and has been used by third party software vendors to distribute reusable software components using standard packaging. The JavaBean model specifies properties that can configure the characteristics of the JavaBean from inside a development environment at design time. It also specifies events that are sent from the JavaBean to the application when an event of interest occurs. Further, the JavaBean component specification also includes support for “BeanInfo” files, and many development tools provide property editors to configure JavaBeans appropriately for the application under development. The JavaBean component model is well suited for graphical and non-graphical components for general-purpose computing systems. The JavaBeans event model, however, is not well suited for time-critical or embedded systems.
- JavaBean properties are “get” and “set” methods that are used to configure the behavior of the component, both at design time by a development tool and at runtime by an application. The extra overhead associated with calling the “get” and “set” methods, however, is minimal compared to the benefits gained. Additionally, such method call overhead is predictable. Consequently, JavaBean properties are acceptable for embedded and real-time applications without modification.
- Unmodified JavaBean events, however, are not appropriate for embedded and time-sensitive applications. JavaBean events include a listener interface that includes one or more methods that will be called when an event notification is sent to a listener. An application implements the interface and registers it with the JavaBean, which calls the event methods at the appropriate time. Each of these event methods must also include a parameter of type EventObject. When a component sends an event, it will create a descendent of EventObject, initialize it, and pass it as a parameter to each registered event listener.
- Normally, since an event handler could keep a reference to the EventObject for future use, a JavaBean will create a new EventObject each time an event is sent. If the JavaBean reused the same EventObject, the internal state could be changed without the event listener expecting it. Since the creation and discarding of EventObjects is a very expensive operation (the “new( )” operation for the EventObject being time consuming and unpredictable), such an event transmission technique is not appropriate for embedded or time-critical applications. Furthermore, a garbage collection cycle can consequently be initiated at a very undesirable time.
- One solution to the above-described problem (the creation of a new EventObject each time an event is sent) is to create one EventObject and reuse it as needed. This solution avoids the overhead associated with the “new( )” operation and it also avoids the possible inopportune initiation of a garbage collection cycle. Such a solution does not, however, strictly adhere to the JavaBean specification. This solution would also allow the development tools to recognize the events and provide full tool support. Overhead does result to some extent, however, since the fields in the EventObject must be initialized with custom state information and the event handler has to access these fields to get the state information.
- A second solution is to bypass the use of an EventObject and to instead pass data directly to the event handlers as primitive data types. This type of event can be described as a cracked event or a primitive event. This second solution delivers the maximum speed advantage. Further, some currently available development tools (for example, the Jbuilder tool by Borland) already provide support for cracked or primitive events that conform to the JavaBeans naming convention. Additional development tools may also support such events as the RTSJ becomes more accepted and widespread.
- In one embodiment, the cracked events of the second-described solution can be unique for each software component and for each type of event that is sent. These “unique” events have the advantage of being more appropriately named, since each event can be descriptive and specific to one type of event. In another embodiment, the cracked events can be made to be generic and can be reused for more than one software component and for more than one event in the same software component. These “generic” events require fewer class definitions than do the unique events and they are independent of any one component. This reduces the number of inner classes required to interface the software components and also reduces call overhead. Software components utilizing the generic-style of events can often be wired directly together in a pipeline fashion with little or no “glue code” required.
- Various types of cracked events can be used to implement the second solution described above. One such event can be an event having no parameters. The TriggerEvent of the aJile Real-Time Embedded Component model (aRTEC) provides an example of a cracked event having no parameters. The aRTEC model is a newly available product of the assignee of the present application. Such an event can be sent by an event-generating
software component 100 as an indicator that some physical condition has occurred. For example, it can be used to indicate a timeout or to indicate that a sensor-related threshold has been crossed. It can also be received to control some type of physical condition (for example, to set, reset or stop a timer or to activate or deactivate some other component controlling a physical event such as light or sound generation, etc.). - Another type of suitable cracked event is an event that passes a Boolean parameter. The AssertEvent of the above-noted aRTEC model is an example of an event having a single Boolean parameter. Such an event can be sent to indicate a state change. For example, a True value in the parameter can indicate that a given state is active while a False value can indicate that the given state is inactive. (Of course, if desired, True can indicate an inactive state while False is used to indicate an active state.) This type of event can also be sent to control a physical condition. A
listener software component 102 receiving the appropriate Boolean event via anevent transmission object 104 can proceed to control a physical condition in response to the event. For example, a lamp component could receive a Boolean event, such as the aRTEC AssertEvent that will cause it to turn a lamp on when, for example, a True value is passed and to turn the lamp off when a False value is passed. - A third type of cracked event that can be used to implement the second solution is an event passing a numeric value. The DataEvent of the aRTEC model provides an example of an event having a single integer for its parameter. Such an event can be used when a numeric value is associated with an event. It can be used to indicate or control the degree of change in a physical condition. For example, a light level, sound level, position change, temperature change, rotation change, etc., etc., can be indicated by passing a numeric value as the parameter. By way of a more specific example, a rotation sensor can use such an event, a DataEvent for example, when it detects a rotation of a hardware component. The rotation can be communicated, for example, by passing a value indicating the angle of rotation detected.
- It will be appreciated that other types of cracked events can also be used. For example, events having a parameter of type Double, Long, Float, or String can be used. Further, an event characterized as passing a DoubleLong numeric value can be used. Such an event has two parameters, one passing a value of type Double and the other passing a value of type Long. The aRTEC versions of these events are labeled respectively as DoubleEvent, LongEvent, FloatEvent, StringEvent and DoubleLongEvent. The aRTEC model is an extension of the JavaBean Component Architecture. The aRTEC setter and getter methods use the JavaBean naming convention. Further, the aRTEC framework implements a direct extension of java.util.DataEventListener.
- Additional detail and description related to specific aRTEC cracked events will now be presented.
- The following describes the aRTEC AssertEventListener interface (public interface AssertEventListener): Interface AssertEventListener is an event listener for changes from a mode, state, or object that can become asserted or de-asserted. Method Summary: void assertEvent (boolean active). Informs observers of a mode change, state change, or any other change that can be considered as an object or physical abstraction changing from an asserted state to a non-asserted state or vice-versa. Method Detail: public void assertEvent (Boolean active). Informs observers of a mode change, state change, or any other change that can be considered as an object or physical abstraction changing from an asserted state to a non-asserted state or vice-versa. Parameters: active whether the mode is asserted or non-asserted The following describes the aRTEC DataEventListener interface (public interface DataEventListener): Interface DataEventListener is an event listener for a fundamental int value. Used as an event listener when a dedicated event set is not warranted. Method Summary: void dataEvent (int value). Informs observers of a state change that can be described as an int value. Method Detail: public void dataEvent (int value). Informs observers of a state change that can be described as an int value. Parameters: value—the new data when a change occurs.
- The following describes the aRTEC DoubleEventListener interface (public interface DoubleEventListener): Interface DoubleEventListener is an event listener for a fundamental double value. Used as an event listener when a dedicated event set is not warranted. Method Summary: void doubleEvent (double Value). Informs observers of a state change that can be described as a double value. Method Detail: public void doubleEvent (double Value). Informs observers of a state change that can be described as a double value. Parameters: Value—the new data when a change occurs.
- The following describes the aRTEC DoubleLongEventListener interface (public interface DoubleLongEventListener): Interface DoubleLongEventListener is an event listener for a compound double and long value. Used as an event listener when a dedicated event set is not warranted. Method Summary: void doubleLongEvent (double doubleValue, long longvalue). Informs observers of a state change that can be described as a combined double and long value. Method Detail: public void doubleLongEvent (double doubleValue, long longvalue). Informs observers of a state change that can be described as a combined double and long value. Parameters: doubleValue—the new data when a change occurs, longvalue—a long value associated with the double value.
- The following describes the aRTEC FloatEventListener interface (public interface FloatEventListener): Interface FloatEventListener is an event listener for a fundamental float value. Used as an event listener when a dedicated event set is not warranted. Method Summary: void floatEvent (float value). Informs observers of a state change that can be described as a float value. Method Detail: public void floatEvent (float value). Informs observers of a state change that can be described as a float value. Parameters: value—the new data when a change occurs.
- The following describes the aRTEC LongEventListener interface (public interface LongEventListener): Interface LongEventListener is an event listener for a fundamental long value. Used as an event listener when a dedicated event set is not warranted. Method Summary: void longEvent (long value). Informs observers of a state change that can be described as a long value. Method Detail: public void longEvent (long value). Informs observers of a state change that can be described as a long value. Parameters: value—the new data when a change occurs.
- The following describes the aRTEC StringEventListener interface (public interface StringEventListener): Interface StringEventListener is an event listener for a String value. Used as an event listener when a dedicated event set is not warranted. Method Summary: void stringEvent (java.lang.String value). Informs observers of new data that can be described as a String. Method Detail: public void stringEvent (java.lang.String value). Informs observers of new data that can be described as a String. Parameters: value—the new data.
- The following describes the aRTEC TriggerEventListener interface (public interface TriggerEventListener): Interface TriggerEventListener is an event listener for an action without associated data. Used as an event listener when a dedicated event set is not warranted. Method Summary: void triggerEvent ( ). Informs observers of an action that can be described without data. Method Detail: public void triggerEvent( ). Informs observers of an action that can be described without data.
- The following information provides further detail and description of the various aRTEC specific components that can generate and receive the cracked events.
- The following describes the aRTEC AssertToTrigger component (public class AssertToTrigger; extends java.lang.Object; implements AssertEventListener), a component that converts an AssertEvent to one of two trigger events. One trigger event is fired for AssertEvents (true) and another is fired for AssertEvent (false).
- Constructor Summary Related to AssertToTrigger Class: AssertToTrigger ( ).
- Method Summary Related to AssertToTrigger Class:
- void addNegativeListener (TriggerEventListener listener)—registers a TriggerEventListener to be notified when an assert with a negative value is received.
- void addPositiveListener (TriggerEventListener listener)—registers a TriggerEventListener to be notified when an assert with a positive value is received.
- void assertEvent (boolean value)—assert input event.
- void removeNegativeListener (TriggerEventListener listener)—unregisters a triggerEventListener so it will no longer receive an event when a negative assert is received.
- void removePositiveListener (TriggerEventListener listener)—unregisters a triggerEventListener so it will no longer receive an event when a positive assert is received.
- Methods inherited from class java.lang.Object: equals, getClass, hashCode, notify, notifyAll, toString, wait.
- Constructor Detail Related to AssertToTrigger Class: public AssertToTrigger ( ).
- Method Detail Related to AssertToTrigger Class for assertEvent: public void assertEvent (boolean value). Specified by: assertEvent in interface AssertEventListener. Parameters: active—indicates whether the mode is asserted or non-asserted.
- Method Detail Related to AssertToTrigger Class for addPositiveListener: public void addPositiveListener (TriggerEventListener listener). Registers a TriggerEventListener to be notified when an assert with a positive value is received. Parameters: listener—the receiver of the triggerEvent.
- Method Detail Related to AssertToTrigger Class for removePositiveListener: public void removePositiveListener (TriggerEventListener listener). Unregisters a triggerEventListener so it will no longer receive an event when a positive assert is received. Parameters: listener—the listener that will no longer receive events.
- Method Detail Related to AssertToTrigger Class for addNegativeListener: public void addNegativeListener (TriggerEventListener listener). Registers a TriggerEventListener to be notified when an assert with a negative value is received. Parameters: listener—the receiver of the triggerEvent.
- Method Detail Related to AssertToTrigger Class for removeNegativeListener: public void removeNegativeListener (TriggerEventListener listener). Unregisters a triggerEventListener so it will no longer receive an event when a negative assert is received. Parameters: listener—the listener that will no longer receive events.
- The following describes the aRTEC CallbackTimer component (public class CallbackTimer; extends java.lang.Object; implements java.lang.Runnable).
- Constructor Summary Related to CallbackTimer Class: CallbackTimer ( )—creates and starts a new callback timer with a default thread priority of one greater than the calling thread.
- Method Summary Related to CallbackTimer Class:
- void callback (long timeMillis, TriggerEventListener listener)—registers a method to be called back at a specific time.
- static CallbackTimer getlnstance ( )—returns a common callback timer that can be shared between users.
- int getThreadPriority ( )—returns the priority of the thread that this callback timer is using.
- boolean removeAndCallback (long timeMillis, TriggerEventListener listener)—registers a listener for a callback at a specific time and removes any pending callbacks in the queue.
- boolean removeCallback (TriggerEventListener listener)—removes all entries for a given listener.
- void run ( )—internal use only.
- void setThreadPriority (int value)—sets the priority of the thread that sends events from this callback timer.
- Methods inherited from class java.lang.Object: equals, getClass, hashCode, notify, notifyAll, toString, wait.
- Constructor Detail Related to CallbackTimer Class: public CallbackTimer ( ). Creates and starts a new callback timer with a default thread priority of one greater than the calling thread. A system callback timer can be created and reused by calling getlnstance ( ) instead of creating a dedicated callback timer using this method.
- Method Detail Related to CallbackTimer Class for getThreadPriority: public int getThreadPriority ( ). Return the priority of the thread that this callback timer is using. Returns: the thread priority of this callback timer.
- Method Detail Related to CallbackTimer Class for setThreadPriority: public void setThreadPriority (int value). Sets the priority of the thread that sends events from this callback timer. Parameters: value—the new thread priority level.
- Method Detail Related to CallbackTimer Class for getlnstance: public static CallbackTimer getlnstance ( ). Returns a common callback timer that can be shared between users.
- Method Detail Related to CallbackTimer Class for callback: public void callback (long timeMillis, TriggerEventListener listener). Registers a method to be called back at a specific time. A TriggerEvent will be sent to the specified listener at the specified time. If the same listener is already registered to receive a callback from this class, both callbacks will be honored. Parameters: timeMillis—the absolute time the callback will occur, listener—the object to receive a trigger event.
- Method Detail Related to CallbackTimer Class for removeCallback: public boolean removeCallback (TriggerEventListener listener). Removes all entries for a given listener. This listener will not receive any callbacks already in the queue. Return true if at least one queued callback entry was removed.
- Method Detail Related to CallbackTimer Class for removeAndCallback: public boolean removeAndCallback (long timeMillis, TriggerEventListener listener). Registers a listener for a callback at a specific time and removes any pending callbacks in the queue. This first removes any queue entries with the same listener, then registers it for a new callback at the specified absolute time. Parameters: timeMillis—the absolute time the callback will occur, listener—the object to receive a trigger event. Returns: true if at least one queued callback entry was removed.
- Method Detail Related to CallbackTimer Class for run: public void run ( ). Internal use only. This class implements the runnable interface and has a dedicated thread. Specified by: run in interface java.lang.Runnable.
- The following describes the aRTEC Counter component (public class Counter; extends java.lang.Object; implements TriggerEventListener, AssertEventListener, DataEventListener), a component that provides an integer up/down counter. This class is a counter that will count up or down to a specified rollover value. It then rolls back and continues counting, or stops counting based on the Reload property. The class will send trigger events when a reload condition occurs, and send data events when the count changes.
- The counter can count up or down dependent on the countUp property. When counting up, counting will continue until the reload value −1 is reached. On the next count, a trigger event is thrown and the counter reloads to 0. If the counter is configured to not reload, the timer will not be reset back to 0, but the trigger event will still be sent. The trigger event is latched internally so it will only be sent once, until the count does change.
- When counting down, counting will continue until 0 is reached. On the next count, a trigger event is thrown, and the counter reloads to 1 minus the reload value. If the counter is configured to no reload, the count will stay at 0, but the trigger event will still be sent. The trigger event is latched internally so it will only be sent once, until the count does change.
- This class can receive a trigger event. This will cause the counter to be incremented or decremented based on the countUp property. Further, this class can receive an assert event that will enable or disable the counter. If the received boolean value is true, the counter will be enabled. If it is false, the counter will be disabled. This class can also receive a date event that will force the count to a specific value.
- Constructor Summary Related to the Counter Class: Counter ( ).
- Method Summary Related to the Counter Class:
- void addCountListener (DataEventListener listener)—registers a DataEventListener to receive an event containing the new count data when the count changes.
- void addRolloverListener (TriggerEventListener listener)—registers a TriggerEventListener to receive a stateless event when the timer overflows.
- void assertEvent (boolean value)—receives an assertEvent that will enable or disable the counter.
- void count ( )—causes the counter to count if it is enabled.
- void dataEvent (int value)—receives a dataEvent that will set the current count.
- int getcount ( )—return the current count.
- int getReloadCount ( )—returns the reload value of the counter.
- TriggerEventListener getResetListener ( )—returns a triggerEventListener that will cause the counter to reset to 0 if counting up and to reloadValue−1 if counting down.
- boolean isCountup ( )—returns if the counter is counting up or down.
- boolean isEnabled ( )—returns the enabled state of the counter.
- boolean isReload ( )—returns the reload property of the counter.
- void removeCountListener (DataEventListener listener)—unregisters a DataEventListener so it will no longer receive an event when the count changes
- void removeRolloverListener (TriggerEventListener listener)—unregisters a triggerEventListener so it will no longer receive an event on rollover.
- void reset ( )—resets the counter value.
- void setCount (int value)—sets the current count.
- void setCountUp (boolean value)—sets if the counter is counting up or down.
- void setEnabled (boolean value)—sets the enabled state of the counter.
- void setReload (boolean value)—sets if the counter will reload after the count reaches 0 if counting down or reload−1 if counting up.
- void setReloadCount (int value)—sets the reload value of the counter.
- void triggerEvent ( )—receives a triggerEvent that will cause the counter to increment or decrement if enabled.
- Methods inherited from class java.lang.Object: equals, getClass, hashCode, notify, notifyAll, toString, wait.
- Constructor Detail Related to the Counter Class: public Counter ( ).
- Method Detail Related to the Counter Class for isEnabled: public boolean isEnabled ( ). Returns the enabled state of the counter. When the counter is not enabled, input triggerEvents are ignored.
- Method Detail Related to the Counter Class for setEnabled: public void setEnabled (boolean value). Sets the enabled state of the counter. When the counter is not enabled, triggerEvents are ignored.
- Method Detail Related to the Counter Class for isCountUp: public boolean isCountUp ( ). Returns if the counter is counting up or down.
- Method Detail Related to the Counter Class for setCountUp: public void setCountUp (boolean value). Sets if the counter is counting up or down
- Method Detail Related to the Counter Class for isReload: public boolean isReload ( ). Returns the reload property of the counter. When reload is true, the counter will reset back to 1−reloadValue, or 0 depending on whether the counter is counting up or down. If the reload is false, the timer will stop at 0 when counting down or at reload−1 value when counting up.
- Method Detail Related to the Counter Class for setReload: public void setReload (boolean value). Sets if the counter will reload after the count reaches 0 if counting down or reload−1 if counting up.
- Method Detail Related to the Counter Class for getReloadCount: public int getReloadCount ( ). Returns the reload value of the counter. The counter will count up to 1−the reload count, or down to 0 and reload with 1−the reload value.
- Method Detail Related to the Counter Class for setReloadCount: public void setReloadCount (int value). Sets the reload value of the counter. The counter will count up to the reload count−1, or down to 0 and reload with 1−the reload value.
- Method Detail Related-to the Counter Class for getCount: public int getcount ( ). Return the current count.
- Method Detail Related to the Counter Class for setCount: public void setCount (int value). Sets the current count.
- Method Detail Related to the Counter Class for count: public void count ( ). Causes the counter to count if it is enabled. The counter will count up or down based on the countUp property.
- Method Detail Related to the Counter Class for reset: public void reset ( ). Resets the counter value. The count value will be set to 0 if it is counting up, or the reload value minus 1 if counting down.
- Method Detail Related to the Counter Class for addRolloverListener: public void addRolloverListener (TriggerEventListener listener). Registers a TriggerEventListener to receive a stateless event when the timer overflows. If counting up, the event will be sent when the counter rolls back to zero. If counting down, the event will be sent when the counter reloads with the reload value. Parameters: listener—the receiver of the triggerEvent.
- Method Detail Related to the Counter Class for removeRolloverListener: public void removeRolloverListener (TriggerEventListener listener). Unregisters a triggerEventListener so it will no longer receive an event on rollover. Parameters: listener—the listener that will no longer receive events.
- Method Detail Related to the Counter Class for addCountListener: public void addCountListener (DataEventListener listener). Registers a DataEventListener to receive an event containing the new count data when the count changes. Parameters: listener—the receiver of the dataEvent.
- Method Detail Related to the Counter Class for removeCountListener: public void removeCountListener (DataEventListener listener). Unregisters a DataEventListener so it will no longer receive an event when the count changes. Parameters: listener—the listener that will no longer receive events.
- Method Detail Related to the Counter Class for assertEvent: public void assertEvent (boolean value). Receives an assertEvent that will enable or disable the counter. Specified by: assertEvent in interface AssertEventListener. Parameters: active—whether the mode is asserted or non-asserted.
- Method Detail Related to the Counter Class for triggerEvent: public void triggerEvent ( ). Receives a triggerEvent that will cause the counter to increment or decrement if enabled. Specified by: triggerEvent in interface TriggerEventListener.
- Method Detail Related to the Counter Class for dataEvent: public void dataEvent (int value). Receives a dataEvent that will set the current count. This is functionally identical to calling the setCount Method. Specified by: dataEvent in interface DataEventListener. Parameters: value—the count that will be loaded.
- Method Detail Related to the Counter Class for getResetListener: public TriggerEventListener getResetListener ( ). Returns a triggerEventListener that will cause the counter to reset to 0 if counting up and to reloadValue−1 if counting down.
- The following describes the aRTEC DataLookup component (public class DataLookup; extends java.lang.Object; implements DataEventListener), a component that converts a data event to another data event. The received data event is used as an index into a table of constants to determine the sent value. If the input value is not in range, an output data event is not sent.
- Constructor Summary Related to the DataLookup Class: DataLookup ( ).
- Method Summary Related to the DataLookup Class:
- void addDataListener (DataEventListener listener)—registers a DataEventListener to be notified when a data event is received.
- void dataEvent (int value)—looks up data in the table based on the passed index.
- int [] getLookupTable ( )—returns the data lookup table.
- void removeDataListener (DataEventListener listener)—unregisters an DataEventListener so it will no longer receive events.
- void setLookupTable (int []table)—sets the data lookup table.
- Methods inherited from class java.lang.Object: equals, getClass, hashCode, notify, notifyAll, toString, wait.
- Constructor Detail Related to the DataLookup Class: public DataLookup ( ).
- Method Detail Related to the DataLookup Class for getLookupTable: public int [] getLookupTable ( ). Returns the data lookup table.
- Method Detail Related to the DataLookup Class for setLookupTable: public void setLookupTable (int [] table). Sets the data lookup table.
- Method Detail Related to the DataLookup Class for dataEvent: public void dataEvent (int value). Looks up data in the table based on the passed index. The result is resent in another data event. Specified by: dataEvent in interface DataEventListener. Parameters: value—the new data when a change occurs.
- Method Detail Related to the DataLookup Class for addDataListener: public void addDataListener (DataEventListener listener). Registers an DataEventListener to be notified when a data event is received. The data parameter will date from the data table. Parameters: listener—the receiver of the DataEvent.
- Method Detail Related to the DataLookup Class for removeDataListener: public void removeDataListener (DataEventListener listener). Unregisters a DataEventListener so it will no longer receive events. Parameters: listener—identifies the listener that will no longer receive events.
- The following describes the aRTEC OneShotTimer component (public class OneShotTimer; extends java.lang.Object: implements TriggerEventListener), a one shot timer component that sends events after a preset time period. The component can be started and stopped by methods or by receiving events. When the preset time interval expires, a trigger event is sent to indicate that the time has elapsed and the timer waits to be started again. If the timer has been started but has not yet expired, it is considered to be running. If the timer is restarted while it is running, the timer starts over, effectively extending the time delay.
- When the one shot is started, it sends an assertEvent with true as the value to indicate that it is running. When the time expires, it sends an assertEvent with false as the parameter to indicate that the timer is no longer running. At that time, a triggerEvent is also sent.
- The one shot timer can receive one triggerEvent to start the timer and one triggerEvent to stop the timer. A trigger event sent to this object will start the timer. Because this class can only implement the triggerEventListener once, an inner class is used to provide a triggerEventListener listener that will stop the timer when a trigger event is received.
- Constructor Summary Related to the OneShotTimer Class: OneShotTimer ( ). Creates a lightweight one shot timer component.
- Method Summary Related to the OneShotTimer Class:
- void addRunningListener (AssertEventListener listener)—registers an AssertEventListener to be notified true when the one shot starts and notified false when the one shot completes.
- void addTimerListener (TriggerEventListener listener)—registers a TriggerEventListener to receive a stateless event when the one shot time expires.
- int getIntervalMillis ( )—returns the time interval of the timer in milliseconds.
- TriggerEventListener getStopListener ( )—returns a TriggerEventListener that will stop the one shot.
- void removeRunningListener (AssertEventListener listener)—unregisters an AssertEventListener so it will no longer receive events.
- void removeTimerListener (TriggerEventListener listener)—unregisters a triggerEventListener so it will no longer receive an event on timeout.
- void setIntervalMillis (int value)—sets the time interval of the timer in milliseconds.
- void start ( )—starts the one shot timer.
- void stop ( )—stops the timer.
- void triggerEvent ( )—receives a trigger event that will start the timer.
- Methods inherited from class java.lang.Object: equals, getClass, hashCode, notify, notifyAll, toString, wait.
- Constructor Detail Related to the OneShotTimer Class: public OneShotTimer ( ). Creates a lightweight one shot timer component.
- Method Detail Related to the OneShotTimer Class for getIntervaIMillis: public int getIntervaIMillis ( ). Returns the time interval of the timer in milliseconds. The time interval can be extended by restarting the timer by calling the start method or sending it a triggerEvent. Returns: the time that the one shot will run in milliseconds.
- Method Detail Related to the OneShotTimer Class for setIntervalMillis: public void setIntervaIMillis (int value). Sets the time interval of the timer in milliseconds. The time interval can be extended by restarting the timer by calling the start method or sending it a triggerEvent. If the timer is currently running, it will not be affected until it is restarted. Parameters: value—the time that the one shot will run in milliseconds.
- Method Detail Related to the OneShotTimer Class for start: public void start ( ). Starts the one shot timer. If the timer is already running, then the time interval is extended so it will expire at the current time+the interval time.
- Method Detail Related to the OneShotTimer Class for stop: public void stop ( ). Stops the timer. In order to start it again, the timer must be reset by calling start.
- Method Detail Related to the OneShotTimer Class for addTimerListener: public void addTimerListener (TriggerEventListener listener). Registers a TriggerEventListener to receive a stateless event when the one shot time expires. Parameters: listener—the receiver of the triggerEvent.
- Method Detail Related to the OneShotTimer Class for removeTimerListener: public void removeTimerListener (TriggerEventListener listener). Unregisters a triggerEventListener so it will no longer receive an event on timeout. Parameters: listener—the listener that will no longer receive events.
- Method Detail Related to the OneShotTimer Class for addRunningListener: public void addRunningListener (AssertEventListener listener). Registers an AssertEventListener to be notified true when the one shot starts and notified false when the one shot completes. Parameters: listener—the receiver of the assertEvent.
- Method Detail Related to the OneShotTimer Class for removeRunningListener: public void removeRunningListener (AssertEventListener listener). Unregisters an AssertEventListener so it will no longer receive events. Parameters: listener—the listener that will no longer receive events.
- Method Detail Related to the OneShotTimer Class for triggerEvent: public void triggerEvent ( ). Receives a trigger event that will start the timer. This method is functionally identical to start ( ). Specified by: triggerEvent in interface TriggerEventListener.
- Method Detail Related to the OneShotTimer Class for getStopListener: public TriggerEventListener getStopListener ( ). Returns a TriggerEventListener that will stop the one shot. In order to start it again, it must be restarted which will reset the time interval. The OneShotTimer component can receive two unique trigger events to start or stop the timer. Because a triggerEventListener is an interface, the PeriodicTimer component can only directly receive one triggerEvent. This default trigger event will start the timer. An innerclass that implements the triggerEventListener interface is used to stop the timer. You can get a reference to this inner classes and register it as an event listener. This method returns a reference to the inner class that will stop the timer. Returns: a reference to a triggerEventListener that will stop the timer.
- The following describes the ARTEC PeriodicTimer component (public class PeriodicTimer; extends java.lang.Object; implements AssertEventListener, TriggerEventListener, java.lang.Runnable), a clock component that generates a periodic stream of trigger events. This component can use a standard java thread, or a real-time periodic thread to generate events at a periodic rate. Its period and priority can be set. A TriggerEventListener can register to receive trigger events at a periodic rate. The component can be disabled which will not stop the timer but will prevent events from being thrown.
- The periodic timer can receive an Assert event that will enable or disable the timer. It can also receive trigger events to start or stop the timer. A trigger event sent to this object will start the timer. Because this class can only implement the triggerEventListener once, an inner class is used to provide a triggerEventListener listener that will stop the PeriodicTimer when a trigger event is received. Constructor Summary Related to the PeriodicTimer Class: PeriodicTimer ( ).
- Method Summary Related to the PeriodicTimer Class:
- void addPeriodicListener (TriggerEventListener listener)—registers a TriggerEventListener to receive a stateless event on a periodic basis.
- void assertEvent (boolean value)—enables or disables the timer.
- int getIntervalMillis ( )—returns the period in milliseconds.
- TriggerEventListener getStopListener ( )—returns a TriggerEventListener that will stop the timer when an event is received.
- int getThreadPriority ( )—sets the priority of the thread that generates trigger events.
- boolean isEnabled ( )—returns if the PeriodicTimer will throw events.
- void removePeriodicListener (TriggerEventListener listener)—unregisters a triggerEventListener so it will no longer receive an event on a periodic basis void run ( )—internal use only.
- void setEnabled (boolean value)—enables or disables the PeriodicTimer to throw events.
- void setIntervalMillis (int value)—sets the period in milliseconds.
- void setThreadPriority (int value)—returns the priority of the thread that generates trigger events.
- void start ( ) starts the periodic timer.
- void stop ( )—stops the timer.
- void triggerEvent ( )—starts the timer.
- Methods inherited from class java.lang.Object: equals, getClass, hashCode, notify, notifyAll, toString, wait.
- Constructor Detail Related to the PeriodicTimer Class: public PeriodicTimer ( ).
- Method Detail Related to the PeriodicTimer Class for getIntervalMillis: public int getIntervalMillis ( ). Returns the period in milliseconds. The period of this component can be configured. The period will be exact, meaning it will not slide based on event listeners processing time. Returns: the current time between events in milliseconds.
- Method Detail Related to the PeriodicTimer Class for setIntervalMillis: public void setIntervaIMillis (int value). Sets the period in milliseconds. Note: the change may not be reflected until the old period expires. The period of this component can be configured. The period will be exact, meaning it will not slide based on event listeners processing time. Parameters: value—the new period in milliseconds.
- Method Detail Related to the PeriodicTimer Class for getThreadPriority: public int getThreadPriority ( ). Sets the priority of the thread that generates trigger events.
- Method Detail Related to the PeriodicTimer Class for setThreadPriority: public void setThreadPriority (int value). Returns the priority of the thread that generates trigger events.
- Method Detail Related to the PeriodicTimer Class for isEnabled: public boolean isEnabled ( ). Returns if the PeriodicTimer will throw events. The PeriodicTimer can be enabled or disabled. This does not change or delay the processing of events. The internal clock still runs, but events will not be thrown.
- Method Detail Related to the PeriodicTimer Class for setEnabled: public void setEnabled (boolean value). Enables or disables the PeriodicTimer to throw events. The
- PeriodicTimer can be enabled or disabled. This does not change or delay the processing of events. The internal clock still runs, but events will not be thrown.
- Method Detail Related to the PeriodicTimer Class for start: public void start ( ). Starts the periodic timer. If the timer was previously stopped, the next trigger time will be now+the period. If the timer has already been started, this method has no affect.
- Method Detail Related to the PeriodicTimer Class for stop: public void stop ( ). stops the timer. The time is stopped and no further events will be thrown until the timer has been started.
- Method Detail Related to the PeriodicTimer Class for run: public void run ( ). Internal use only. This method is required to implement the runnable interface. Specified by: run in interface java.lang.Runnable.
- Method Detail Related to the PeriodicTimer Class for addPeriodicListener: public void addPeriodicListener (TriggerEventListener listener). Registers a TriggerEventListener to receive a stateless event on a periodic basis. Parameters: listener—the receiver of the AssertEvent.
- Method Detail Related to the PeriodicTimer Class for removePeriodicListener: public void removePeriodicListener (TriggerEventListener listener). Unregisters a triggerEventListener so it will no longer receive an event on a periodic basis. Parameters: listener—the listener that will no longer receive events.
- Method Detail Related to the PeriodicTimer Class for assertEvent: public void assertEvent (boolean value). Enables or disables the timer. Note that the clock does not stop based on the enabled status, but trigger events will not be thrown. Specified by: assertEvent in interface AssertEventListener. Parameters: active—whether the mode is asserted or non-asserted.
- Method Detail Related to the PeriodicTimer Class for triggerEvent: public void triggerEvent ( ). Starts the timer. This class can receive generic trigger events. Specified by: triggerEvent in interface TriggerEventListener.
- Method Detail Related to the PeriodicTimer Class for getStopListener: public TriggerEventListener getStopListener ( ). Returns a TriggerEventListener that will stop the timer when an event is received.
- The PeriodicTimer component can receive two unique trigger events to start or stop the timer. Because a triggerEventListener is an interface, the PeriodicTimer component can only directly receive one triggerEvent. This default trigger event will start the timer. An innerclass that implement the triggerEventListener interface is used to stop the timer. You can get a reference to this inner class and register it as an event listener. This method returns a reference to the inner class that will stop the timer. Returns: a reference to a triggerEventListener that will stop the timer.
- The following describes the ARTEC PushButton component (public class PushButton; extends java.lang.Object; implements TriggerEventListener), a component that controls and debounces a pushbutton switch wired to a GPIO pin. This class is similar in functionality to a GpioPin but it additionally includes pin debouncing. A debounceTime is specified. The pin must be in a stable state for this period of time before the change is registered in this class.
- Like the GpioPin class, this class can send a triggerEvent when the state rises, falls, or both. Unlike the GpioPin, this class will send an assertEvent whenever the state changes with the state reflected in the passed value. So the report policy will only affect the triggerEvent and not the assertEvent in this class.
- Field Summary Related to the PushButton Class:
- static int TRIGGER OFF—causes the pushButton to no longer generate any trigger events static int TRIGGER ON_PUSH—causes the pushButton to send a trigger event only when the button is pushed.
- static int TRIGGER ON PUSH AND RELEASE—causes the pushbutton to send a trigger event when the button is pressed or when it is released.
- static int TRIGGER ON RELEASE—causes the pushButton to send a trigger event only when the button is released.
- Constructor Summary Related to the PushButton Class:
- PushButton ( )—creates an instance of a PushButton that has control over one GpioPin on an aJile Systems aJ-100 microcontroller. The pin ID property must be set at a later time before the PushButton can be used.
- PushButton (int pinID)—creates an instance of an object that controls one IO pin.
- Method Summary Related to the PushButton Class:
- void addStateListener (AssertEventListener listener)—registers an AssertEventListener to receive an event when any state change occurs and has stabilized.
- void addTriggerListener (TriggerEventListener listener)—registers a TriggerEventListener to receive a stateless event when a pin has changed states and stabilized.
- int getDebounceTime ( )—returns the time a button must be stable before events will be generated.
- int getPinID ( )—returns current Pin ID that identifies which processor bit is used.
- int getTriggerReportPolicy ( )—returns the condition for sending triggerEvents to report a button press or release.
- boolean isPinInverted ( )—each pin can be a positive or negative assertion logic.
- boolean isPressed ( )—returns the current debounced state of the pin.
- void removeStateReportListener (AssertEventListener listener)—unregisters an assertEventListener so it will no longer receive an event when a pin state change occurs.
- void removeTriggerListener (TriggerEventListener listener)—unregisters a triggerEventListener so it will no longer receive an event when a pin state change occurs.
- void setDebounceTime (int millis)—sets the time in milliseconds that a button must be stable before interrupts will be generated.
- void setPinID (int pinID)—sets the processor bit that will be controlled by this GpioPin object.
- void setPinInverted (boolean value)—each pin can be a positive or negative assertion logic.
- void setTriggerReportPolicy (int value)—sets the condition for sending triggerEvents to report a button Press or release. It will not affect assertEvents which will always be sent regardless of the triggerReportPolicy.
- void triggerEvent ( )—internal use only method to receive events from the underlying GpioPin.
- Methods inherited from class java.Iang.Object: equals, getClass, hashCode, notify, notifyAll, toString, wait.
- Field Detail Related to the PushButton Class for TRIGGER_OFF: public static final int TRIGGER_OFF. Causes the pushButton to no longer generate any trigger events.
- Field Detail Related to the PushButton Class for TRIGGER_ON_PUSH: public static final int TRIGGER_ON_PUSH. Causes the pushButton to send a trigger event only when the button is pushed.
- Field Detail Related to the PushButton Class for TRIGGER_ON_RELEASE: public static final int TRIGGER_ON_RELEASE. Causes the pushButton to send a trigger event only when the button is released.
- Field Detail Related to the PushButton Class for TRIGGER_ON_PUSH_AND_RELEASE: public static final int TRIGGER_ON_PUSH_AND_RELEASE. Causes the pushButton to send a trigger event when the button is pressed or when it is released.
- Constructor Detail Related to the PushButton Class for PushButton: public PushButton ( ). Creates an instance of a PushButton that has control over one GpioPin on the microcontroller. The pin ID property must be set at a later time before the PushButton can be used.
- Constructor Detail Related to the PushButton Class for PushButton: public PushButton (int pinID). Creates an instance of an object that controls one IO pin of the microcontroller. Possible GPIO pin identifiers include GpioPin.GPIOA_BITX where 0<=X<=7; GpioPin.GPIOB_BITX where 0<=X<=7; GpioPin.GPIOC_BITX where 0<=X<=7; GpioPin.GPIOD_BITX where 0<=X<=7; and GpioPin.GPIOE_BITX where 0<=X<=7. Parameters: pinID—the pin identifier.
- Method Detail Related to the PushButton Class for getPinID: public int getPinID ( ). Returns current Pin ID that identifies which microcontroller bit is used.
- Method Detail Related to the PushButton Class for setPinID: public void setPinID (int pinID). Sets the microcontroller bit that will be controlled by this GpioPin object
- Method Detail Related to the PushButton Class for isPressed: public boolean isPressed ( ). Returns the current debounced state of the pin. This does not reflect the state of the pin, but rather the state after debouncing. Returns: true if the pin is pushed, false if the pin is not pushed.
- Method Detail Related to the PushButton Class for isPinInverted: public boolean isPinInverted ( ). Each pin can be a positive or negative assertion logic. A non-inverted pin will be pushed when the pin is grounded. An inverted pin will be released when the pin is grounded. Returns: true if the pin is inverting it's logic level.
- Method Detail Related to the PushButton Class for setPinInverted: public void setPinInverted (boolean value). Each pin can be a positive or negative assertion logic. An inverted pin will return false for the state on a high level and true for a low level. Note: this property affects the PinState property. It does not affect the Report Policy used to determine when the event is thrown. Parameters: value—true if the pin is inverting its logic level.
- Method Detail Related to the PushButton Class for getDebounceTime: public int getDebounceTime ( ). Returns the time a button must be stable before events will be generated.
- Method Detail Related to the PushButton Class for setDebounceTime: public void setDebounceTime (int millis). Sets the time in milliseconds that a button must be stable before interrupts will be generated. This time period will be used to debounce the switch.
- Method Detail Related to the PushButton Class for getTriggerReportPolicy: public int getTriggerReportPolicy ( ). Returns the condition for sending triggerEvents to report a button Press or release. An event can be generated based on pin state changes. The ReportPolicy determines when the event is generated. User code can sign up to receive the event by the addReportListener( ) registration method. This will affect trigger events, it will not affect assert events. The following report policies can be returned: PushButton.TRIGGER_OFF, PushButton.TRIGGER_ON_PUSH, PushButton.TRIGGER_ON_RELEASE, PushButton.TRIGGER_ON_PUSH_AND_RELEASE. Returns: the report policy currently in place for trigger events.
- Method Detail Related to the PushButton Class for setTriggerReportPolicy: public void setTriggerReportPolicy (int value). Sets the condition for sending triggerEvents to report a button Press or release. It will not affect assertEvents which will always be sent regardless of the triggerReportPolicy. An event can be generated based on pin state changes. The ReportPolicy determines when the event is generated. User code can sign up to receive the event by the addReportListener( ) registration method. This will affect trigger events, it will not affect assert events. The following report policies can be returned: PushButton.TRIGGER_OFF, PushButton.TRIGGER_ON_PUSH, PushButton.TRIGGER_ON_RELEASE, and PushButton.TRIGGER_ON_PUSH_AND_RELEASE. Parameters: value—the condition to generate trigger events.
- Method Detail Related to the PushButton Class for addTriggerListener: public void addTriggerListener (TriggerEventListener listener). Registers a TriggerEventListener to receive a stateless event when a pin has changed states and stabilized. Events will be generated according the TriggerReportPolicy currently in place. Parameters: listener—the receiver of the TriggerEvent.
- Method Detail Related to the PushButton Class for removeTriggerListener: public void removeTriggerListener (TriggerEventListener listener). Unregisters a triggerEventListener so it will no longer receive an event when a pin state change occurs. Parameters: listener—the listener that will no longer receive events.
- Method Detail Related to the PushButton Class for addStateListener: public void addStateListener (AssertEventListener listener). Registers an AssertEventListener to receive an event when any state change occurs and has stabilized. Parameters: listener—the receiver of the AssertEvent.
- Method Detail Related to the PushButton Class for removeStateReportListener: public void removeStateReportListener (AssertEventListener listener). Unregisters an assertEventListener so it will no longer receive an event when a pin state change occurs. Parameters: listener—the listener that will no longer receive events.
- Method Detail Related to the PushButton Class for triggerEvent: public void triggerEvent ( ). Internal use only method to receive events from the underlying GpioPin. Specified by: triggerEvent in interface TriggerEventListener.
- The following describes the aRTEC Switch component (public class Switch; extends java.lang.Object; implements AssertEventListener, TriggerEventListener), a component that receives trigger events and relays them on to one of two trigger listeners. The listener to receive the trigger event is determined by the state of the switch. The state of the switch can be set through properties or by receiving an Assert event. The switch state is ether true or false.
- Constructor Summary Related to the Switch Class: Switch ( ).
- Method Summary Related to the Switch Class:
- void addFalseListener (TriggerEventListener listener)—registers a TriggerEventListener to be notified when an input trigger is received and the switch is in the false state.
- void addTrueListener (TriggerEventListener listener)—registers a TriggerEventListener to be notified when an input trigger is received and the switch is in the true state
- void assertEvent (boolean value)—receives an Assert event that will set the switch state.
- boolean getState ( )—returns the switch state.
- void removeFalseListener (TriggerEventListener listener)—unregisters a triggerEventListener so it will no longer receive an event.
- void removeTrueListener (TriggerEventListener listener)—unregisters a triggerEventListener so it will no longer receive an event.
- void setState (boolean value)—explicitly sets the switch state.
- void triggerEvent ( )—receives a trigger event that will be relayed on to one of two trigger event listeners based on the switch state.
- Methods inherited from class java.Iang.Object: equals, getClass, hashCode, notify, notifyAll, toString, wait.
- Constructor Detail Related to the Switch Class: public Switch ( ).
- Method Detail Related to the Switch Class for getState: public boolean getStateo. Returns the switch state.
- Method Detail Related to the Switch Class for setState: public void setState (boolean value). Explicitly sets the switch state
- Method Detail Related to the Switch Class for assertEvent: public void assertEvent (boolean value). Receives an Assert event that will set the switch state Specified by: assertEvent in interface AssertEventListener. Parameters: active—whether the mode is asserted or non-asserted.
- Method Detail Related to the Switch Class for triggerEvent: public void triggerEvent ( ). Receives a trigger event that will be relayed on to one of two trigger event listeners based on the switch state. Specified by: triggerEvent in interface TriggerEventListener.
- Method Detail Related to the Switch Class for addTrueListener: public void addTrueListener (TriggerEventListener listener). Registers a TriggerEventListener to be notified when an input trigger is received and the switch is in the true state. Parameters: listener—the receiver of the triggerEvent.
- Method Detail Related to the Switch Class for removeTrueListener: public void removeTrueListener (TriggerEventListener listener). Unregisters a triggerEventListener so it will no longer receive an event. Parameters: listener—the listener that will no longer receive events.
- Method Detail Related to the Switch Class for addFalseListener: public void addFalseListener (TriggerEventListener listener). Registers a TriggerEventListener to be notified when an input trigger is received and the switch is in the false state. Parameters: listener—the receiver of the triggerEvent.
- Method Detail Related to the Switch Class for removeFalseListener: public void removeFalseListener (TriggerEventListener listener). Unregisters a triggerEventListener so it will no longer receive an event. Parameters: listener—the listener that will no longer receive events.
- The following describes the aRTEC TriggerData component (public class TriggerData; extends java.lang.Object; implements TriggerEventListener), a component that sends a data event with a preset value whenever a trigger event is received.
- Constructor Summary Related to the TriggerData Class: TriggerData ( ).
- Method Summary Related to the TriggerData Class:
- void addDataListener (DataEventListener listener)—registers a DataEventListener to be notified when a trigger event is received.
- int getDataValue ( )—returns the value that will be passed in the data event.
- void removeDataListener (DataEventListener listener)—unregisters a DataEventListener so it will no longer receive events.
- void setDataValue (int value)—sets the value that will be passed in the data event.
- void triggerEvent ( )—sends a data event with the preset value.
- Methods inherited from class java.lang.Object: equals, getClass, hashCode, notify, notifyAll, toString, wait.
- Constructor Detail Related to the TriggerData Class: public TriggerData ( ).
- Method Detail Related to the TriggerData Class for getDataValue: public int getDataValue ( ). Returns the value that will be passed in the data event.
- Method Detail Related to the TriggerData Class for setDataValue: public void setDataValue (int value). Sets the value that will be passed in the data event.
- Method Detail Related to the TriggerData Class for triggerEvent: public void triggerEvent ( ). Sends a data event with the preset value. Specified by: triggerEvent in interface TriggerEventListener.
- Method Detail Related to the TriggerData Class for addDataListener: public void addDataListener (DataEventListener listener). Registers a DataEventListener to be notified when a trigger event is received. The dataValue property will be passed as the parameter to the event. Parameters: listener—the receiver of the DataEvent.
- Method Detail Related to the TriggerData Class for removeDataListener: public void removeDataListener (DataEventListener listener). Unregisters a DataEventListener so it will no longer receive events. Parameters: listener—the listener that will no longer receive events.
- The following describes the aRTEC TriggerToAssert component(public class TriggerToAssert; extends java.lang.Object; implements TriggerEventListener), a component that converts two Trigger input events to one Assert output event. An assertEvent is fired whenever a trigger input event is received. True is passed when the positive trigger event is received and false is passed when the negative trigger event is received. The class itself implements the positive trigger listener. You must call getNegativeTriggerListener to get a listener for trigger events that will send negative assert events.
- Constructor Summary Related to the TriggerToAssert Class: TriggerToAssert ( ).
- Method Summary Related to the TriggerToAssert Class:
- void addAssertListener (AssertEventListener listener)—registers an AssertEventListener to be notified when a trigger event is received.
- TriggerEventListener getNegativeTriggerListener ( )—returns a TriggerEventListener that will send an assert event with a false value.
- void removeAssertListener (AssertEventListener listener)—unregisters an AssertEventListener so it will no longer receive events.
- void triggerEvent ( )—sends an assert event with a true value.
- Methods inherited from class java.lang.Object: equals, getClass, hashCode, notify, notifyAll, toString, wait.
- Constructor Detail Related to the TriggerToAssert Class: public TriggerToAssert ( ).
- Method Detail Related to the TriggerToAssert Class for triggerEvent: public void triggerEvent ( ). Sends an assert event with a true value. Specified by: triggerEvent in interface TriggerEventListener.
- Method Detail Related to the TriggerToAssert Class for getNegativeTriggerListener: public TriggerEventListener getNegativeTriggerListener( ). Returns a TriggerEventListener that will send an assert event with a false value.
- Method Detail Related to the TriggerToAssert Class for addAssertListener: public void addAssertListener (AssertEventListener listener). Registers an AssertEventListener to be notified when a trigger event is received. Parameters: listener—the receiver of the assertEvent.
- Method Detail Related to the TriggerToAssert Class for removeAssertListener: public void removeAssertListener (AssertEventListener listener). Unregisters an AssertEventListener so it will no longer receive events. Parameters: listener—the listener that will no longer receive events.
- An event-generating
software component 100 can send an event in a unicast or a multicast manner. In a unicast transmission, the event-generatingsoftware component 100 sends an event to a singlelistener software component 102. In a multicast transmission, the event-generatingsoftware component 100 can send the same event to more than one listener software components. Events that are sent in a multicast manner are referred to as multicast events. - In the JavaBean Component Architecture, listener software components register to receive a particular type event or events. A JavaBean can be set up to transmit events in a unicast or in a multicast manner. To implement multicast events, JavaBeans store a vector of the registered listeners. When the related event occurs, the vector is traversed and the multicast event is sent to each of the registered listeners.
- It is possible, however, to implement an event multicaster object (or multicaster) instead of a vector. An event multicaster object is an event listener that relays the event to two additional listeners. If one of the additional listeners is also an event multicaster object, the event is relayed to two more listeners. In this manner any number of listeners can be registered without the use of a vector. The use of the event multicaster objects is hidden behind the event registration methods.
- Use of the event multicaster objects instead of a vector provides benefits when in a time-sensitive environment. When a single listener is registered and an event is sent, the event can be sent by a single interface call without the looping and overhead associated with the vector approach. As more listeners are registered for the same event, however, the event will be routed through multiple multicasters thereby creating additional overhead. It will be rare, however, to have a situation where enough listeners are registered to create more overhead than would be created by traversing a vector.
- Further, the event multicaster objects can be reusable. Implementing reusable event multicaster objects eliminates the overhead that would be associated with the creation of new multicasters. Pre-existing event multicaster objects are simply put into service as needed when new listener software components are registered (added). When a listener software component or components are to be removed, the appropriate multicaster(s) are taken out of service and are again available for reuse when a listener is added. Further, in one embodiment, listener software components are added only at the end of the tree structure.
FIGS. 2 through 5 depict features related to the functioning and structure of the multicast system of the present invention. -
FIG. 2 depicts a transmission environment including an event-generatingsoftware component 200, a singlelistener software component 202 and a plurality of unused event multicaster objects, three of which (204, 206, 208) are specifically depicted. Thelistener software component 202 includescode 210 to be executed upon receiving an event notification of an event for which it has registered. In the structure ofFIG. 2 , anevent multicaster object -
FIG. 3 depicts a multicast transmission environment involving an event-generatingsoftware component 300, anevent multicaster object 302 and twolistener software components FIGS. 1, 4 and 5, but they can be used and included in the same manner in those figures.) Since there are now two listener software objects 304, 306 anevent multicaster object 302 is required. Theevent multicaster object 302 includes afirst storage location 314 referencing one of theevent listener components 304 and asecond storage location 316 referencing the otherevent listener component 306. In one embodiment, the first listener software component to register (for example thelistener software component 202,FIG. 2 ) is thelistener software component 304 referenced by thefirst storage location 314 and the next listener software component to register is the listener software component referenced by thesecond storage location 316. Each of thelistener software components code -
FIG. 4 depicts a multicast transmission environment involving an event-generatingsoftware component 400, two event multicaster objects 402, 404 and threelistener software components 406, 408, 410. An additionalevent multicaster object 404 is needed to reference the thirdlistener software component 410. As with the first event multicaster object 402,FIG. 4 ; 302,FIG. 3 , the second event multicaster object 402 includes afirst storage location 412 referencing the first event multicaster object 402 and asecond storage location 414 referencing the thirdevent listener component 410. Each of thelistener software components 406, 408, 410 includescode 416, 418, 420 to be executed upon receiving an event notification of an event for which it has registered. Again, in one embodiment, the first listener software component to register is listener software component 406, the second to register takes the position of listener software component 408 and the third to register islistener software component 410. - It will be appreciated that the structure expanded from
FIGS. 2 through 4 can be expanded in a similar fashion so as to include any number of listener software components.FIG. 5 depicts a multicast transmission environment involving an event-generatingsoftware component 500, a plurality of event multicaster objects 502, 504 and a plurality of listener software components, three of which (506, 508, 510) are specifically depicted. As indicated above, each event multicaster object, with the exception of the firstevent multicaster object 502, will reference one listener software component and one event multicaster object. Each listener software component can includecode - The various listener software components can be added to the structure according to the order in which they are registered. Further, if desired, when a listener software component is to be removed from the structure, the structure can be reconstituted. Alternatively, removal of a listener software component can be accomplished by simply deleting the reference to it in the event multicaster object with which it is related. Finally, in one embodiment, when an event is communicated through any of the structures of
FIGS. 3 through 5 , it can be sent first to the first registered listener software component (for example the listener software component 506,FIG. 5 ) and then to the next registered listener software component (for example thelistener software component 508,FIG. 5 ) and so forth to each of the other listener software components in the order in which they were registered as listeners. - Additional detail and description related to specific aRTEC multicast classes will now be presented.
- The following provides a description of the AssertEventMulticaster class (public class AssertEventMulticaster; extends java.lang.Object; implements AssertEventListener): Class AssertEventMulticaster is an event multicaster for the event AssertEvent. Each instance branches to two listeners. Includes static helper routines for adding and removing listeners to the event throwing class.
- Method Summary: 1) static AssertEventListener add (AssertEventListener node, AssertEventListener listener). Helper routine for any addAssertEventListener routine. 2) void assertEvent (Boolean active). The event listener. 3) static AssertEventListener remove (AssertEventListener node, AssertEventListener listener). Helper routine for any removeAssertEventListener routine.
- Methods inherited from class java.lang.Object: equals, getClass, hashCode, notify, notifyAll, toString, wait.
- Method Detail: 1) public static AssertEventListener add (AssertEventListener node, AssertEventListener listener). Helper routine for any addAssertEventListener routine. Adds multicaster nodes as necessary to support “n” event listeners. The class throwing the AssertEvent should have one reference to a listener and treat it like a unicast event. The add and remove methods should be used to maintain a transparent tree of multicasters to support multiple listeners. Parameters: node—the current value of the topmost event listener; listener—the new single event listener to add to the tree. Returns: the replacement node for the topmost event listener.
- 2) public static AssertEventListener remove (AssertEventListener node, AssertEventListener listener). Helper routine for any removeAssertEventListener routine. Removes multicaster nodes as necessary to support “n-1” event listeners. The class throwing the AssertEvent should have one reference to a listener and treat it like a unicast event. The add and remove methods should be used to maintain a transparent tree of multicasters to support multiple listeners. Parameters: node—the current value of the topmost event listener; listener—to remove from the multicast tree. Returns: the replacement node for the topmost event listener.
- 3) public void assertEvent (boolean active). The event listener. Relays the passed event to two children listeners. Specified by: assertEvent in interface AssertEventListener. Parameters: source—the mode or state that is changing; active—if the mode is becoming active or inactive.
- The following provides a description of the DataEventMulticaster class (public class DataEventMulticaster; extends java.lang.Object; implements DataEventListener): Class DataEventMulticaster is an event multicaster for the event DataEvent. Each instance branches to two listeners. Includes static helper routines for adding and removing listeners to the event throwing class.
- Method Summary: 1) static DataEventListener add (DataEventListener node, DataEventListener listener). Helper routine for any addDataEventListener routine. 2) void dataEvent (int value). The event listener. 3) static DataEventListener remove (DataEventListener node, DataEventListener listener). Helper routine for any removeDataEventListener routine.
- Methods inherited from class java.lang.Object: equals, getClass, hashCode, notify, notifyAll, toString, wait.
- Method Detail: 1) public static DataEventListener add (DataEventListener node, DataEventListener listener). Helper routine for any addDataEventListener routine. Adds multicaster nodes as necessary to support “n” event listeners. The class throwing the DataEvent should have one reference to a listener and treat it like a unicast event. The add and remove methods should be used to maintain a transparent tree of multicasters to support multiple listeners. Parameters: node—the current value of the topmost event listener; listener—the new single event listener to add to the tree. Returns: the replacement node for the topmost event listener.
- 2) public static DataEventListener remove (DataEventListener node, DataEventListener listener). Helper routine for any removeDataEventListener routine. Removes multicaster nodes as necessary to support “n-1” listeners. The class throwing the DataEvent should have one reference to a listener and treat it like a unicast event. The add and remove methods should be used to maintain a transparent tree of multicasters to support multiple listeners. Parameters: node—the current value of the topmost event listener; listener—to remove from the multicast tree. Returns: the replacement node for the topmost event listener.
- 3) public void dataEvent (int value). The event listener. Relays the passed event to two children listeners. Specified by: dataEvent in interface DataEventListener. Parameters: source—the mode or state that is changing; active—if the mode is becoming active or inactive.
- The following provides a description of the DoubleLongEventlulticaster class (public class DoubleLongEventMulticaster; extends java.lang.Object; implements DoubleLongEventListener): Class DoubleLongEventMulticaster is an event multicaster for the event DoubleLongEvent. Each instance branches to two listeners. Includes static helper routines for adding and removing listeners to the event throwing class.
- Method Summary: 1) static DoubleLongEventListener add (DoubleLongEventListener node, DoubleLongEventListener listener). Helper routine for any addDoubleLongEventListener routine. 2) void doubleLongEvent (double doublevalue, long longvalue). The event listener. 3) static DoubleLongEventListener remove (DoubleLongEventListener node, DoubleLongEventListener listener). Helper routine for any removeDoubleLongEventListener routine.
- Methods inherited from class java.lang.Object: equals, getClass, hashCode, notify, notifyAll, toString, wait.
- Method Detail: 1) public static DoubleLongEventListener add (DoubleLongEventListener node, DoubleLongEventListener listener). Helper routine for any addDoubleLongEventListener routine. Adds multicaster nodes as necessary to support “n” event listeners. The class throwing the DoubleLongEvent should have one reference to a listener and treat it like a unicast event. The add and remove methods should be used to maintain a transparent tree of multicasters to support multiple listeners. Parameters: node—the current value of the topmost event listener; listener—the new single event listener to add to the tree. Returns: the replacement node for the topmost event listener.
- 2) public static DoubleLongEventListener remove (DoubleLongEventListener node, DoubleLongEventListener listener). Helper routine for any removeDoubleLongEventListener routine. Removes multicaster nodes as necessary to support “n-1” event listeners. The class throwing the DoubleLongEvent should have one reference to a listener and treat it like a unicast event. The add and remove methods should be used to maintain a transparent tree of multicasters to support multiple listeners. Parameters: node—the current value of the topmost event listener; listener—to remove from the multicast tree. Returns: the replacement node for the topmost event listener.
- 3) public void doubleLongEvent (double doublevalue, long longvalue). The event listener. Relays the passed event to two children listeners. Specified by: doubleLongEvent in interface DoubleLongEventListener. Parameters: source—the mode or state that is changing, active—if the mode is becoming active or inactive.
- The following provides a description of the DoubleEventMulticaster class (public class DoubleEventMulticaster; extends java.lang.Object; implements DoubleEventListener): Class DoubleEventMulticaster is an event multicaster for the event DoubleEvent. Each instance branches to two listeners. Includes static helper routines for adding and removing listeners to the event throwing class.
- Method Summary: 1) static DoubleEventListener add (DoubleEventListener node, DoubleEventListener listener). Helper routine for any addDoubleEventListener routine. 2) void doubleEvent (double value). The event listener. 3) static DoubleEventListener remove (DoubleEventListener node, DoubleEventListener listener). Helper routine for any removeDoubleEventListener routine.
- Methods inherited from class java.lang.Object: equals, getClass, hashCode, notify, notifyAll, toString, wait.
- Method Detail: 1) public static DoubleEventListener add (DoubleEventListener node, DoubleEventListener listener). Helper routine for any addDoubleEventListener routine. Adds multicaster nodes as necessary to support “n” event listeners. The class throwing the DoubleEvent should have one reference to a listener and treat it like a unicast event. The add and remove methods should be used to maintain a transparent tree of multicasters to support multiple listeners. Parameters: node—the current value of the topmost event listener; listener—the new single event listener to add to the tree. Returns: the replacement node for the topmost event listener.
- 2) public static DoubleEventListener remove (DoubleEventListener node, DoubleEventListener listener). Helper routine for any removeDoubleEventListener routine. Removes multicaster nodes as necessary to support “n-1” event listeners. The class throwing the DoubleEvent should have one reference to a listener and treat it like a unicast event. The add and remove methods should be used to maintain a transparent tree of multicasters to support multiple listeners. Parameters: node—the current value of the topmost event listener; listener—to remove from the multicast tree. Returns: the replacement node for the topmost event listener.
- 3) public void doubleEvent (double value). The event listener. Relays the passed event to two children listeners. Specified by: doubleEvent in interface DoubleEventListener. Parameters: source—the mode or state that is changing, active—if the mode is becoming active or inactive.
- The following provides a description of the FloatEventMulticaster class (public class FloatEventMulticaster; extends java.lang.Object; implements FloatEventListener). Class FloatEventMulticaster is an event multicaster for the event FloatEvent. Each instance branches to two listeners. Includes static helper routines for adding and removing listeners to the event throwing class.
- Method Summary: 1) static FloatEventListener add (FloatEventListener node, FloatEventListener listener). Helper routine for any addFloatEventListener routine. 2) void floatEvent (float value). The event listener. 3) static FloatEventListener remove (FloatEventListener node, FloatEventListener listener). Helper routine for any removeFloatEventListener routine.
- Methods inherited from class java.lang.Object: equals, getClass, hashCode, notify, notifyAll, toString, wait.
- Method Detail: 1) public static FloatEventListener add (FloatEventListener node, FloatEventListener listener). Helper routine for any addFloatEventListener routine. Adds multicaster nodes as necessary to support “n” event listeners. The class throwing the FloatEvent should have one reference to a listener and treat it like a unicast event. The add and remove methods should be used to maintain a transparent tree of multicasters to support multiple listeners. Parameters: node—the current value of the topmost event listener; listener—the new single event listener to add to the tree. Returns: the replacement node for the topmost event listener.
- 2) public static FloatEventListener remove (FloatEventListener node, FloatEventListener listener). Helper routine for any removeFloatEventListener routine. Removes multicaster nodes as necessary to support “n-1” event listeners. The class throwing the FloatEvent should have one reference to a listener and treat it like a unicast event. The add and remove methods should be used to maintain a transparent tree of multicasters to support multiple listeners. Parameters: node—the current value of the topmost event listener; listener—to remove from the multicast tree. Returns: the replacement node for the topmost event listener.
- 3) public void floatEvent (float value). The event listener. Relays the passed event to two children listeners. Specified by: floatEvent in interface FloatEventListener. Parameters: source—the mode or state that is changing; active—if the mode is becoming active or inactive.
- The following provides a description of the LongEventMulticaster class (public class LongEventMulticaster; extends java.lang.Object; implements LongEventListener. Class LongEventMulticaster is an event multicaster for the event LongEvent. Each instance branches to two listeners. Includes static helper routines for adding and removing listeners to the event throwing class.
- Method Summary: 1) static LongEventListener add (LongEventListener node, LongEventListener listener). Helper routine for any addLongEventListener routine. 2) void longEvent (long value). The event listener. 3) static LongEventListener remove (LongEventListener node, LongEventListener listener). Helper routine for any removeLongEventListener routine.
- Methods inherited from class java.lang.Object: equals, getClass, hashCode, notify, notifyAll, toString, wait.
- Method Detail: 1) public static LongEventListener add (LongEventListener node, LongEventListener listener). Helper routine for any addLongEventListener routine. Adds multicaster nodes as necessary to support “n” event listeners. The class throwing the LongEvent should have one reference to a listener and treat it like a unicast event. The add and remove methods should be used to maintain a transparent tree of multicasters to support multiple listeners. Parameters: node—the current value of the topmost event listener; listener—the new single event listener to add to the tree. Returns: the replacement node for the topmost event listener.
- 2) public static LongEventListener remove (LongEventListener node, LongEventListener listener). Helper routine for any removeLongEventListener routine. Removes multicaster nodes as necessary to support “n-1” event listeners. The class throwing the LongEvent should have one reference to a listener and treat it like a unicast event. The add and remove methods should be used to maintain a transparent tree of multicasters to support multiple listeners. Parameters: node—the current value of the topmost event listener; listener—to remove from the multicast tree. Returns: the replacement node for the topmost event listener.
- 3) public void longEvent (long value). The event listener. Relays the passed event to two children listeners. Specified by: longEvent in interface LongEventListener. Parameters: source—the mode or state that is changing; active—if the mode is becoming active or inactive.
- The following provides a description of the StringEventMulticaster class (public class StringEventMulticaster; extends java.lang.Object; implements StringEventListener): Class StringEventMulticaster is an event multicaster for the event StringEvent. Each instance branches to two listeners. Includes static helper routines for adding and removing listeners to the event throwing class.
- Method Summary: 1) static StringEventListener add (StringEventListener node, StringEventListener listener). Helper routine for any addStringEventListener routine. 2) static StringEventListener remove (StringEventListener node, StringEventListener listener). Helper routine for any removeStringEventListener routine. 3) void stringevent (java.lang.String value). The event listener.
- Methods inherited from class java.lang.Object: equals, getClass, hashCode, notify, notifyAll, toString, wait.
- Method Detail: 1) public static StringEventListener add (StringEventListener node, StringEventListener listener). Helper routine for any addStringEventListener routine. Adds multicaster nodes as necessary to support “n” event listeners. The class throwing the StringEvent should have one reference to a listener and treat it like a unicast event. The add and remove methods should be used to maintain a transparent tree of multicasters to support multiple listeners. Parameters: node—the current value of the topmost event listener; listener—the new single event listener to add to the tree. Returns: the replacement node for the topmost event listener.
- 2) public static StringEventListener remove (StringEventListener node, StringEventListener listener). Helper routine for any removeStringEventListener routine. Removes multicaster nodes as necessary to support “n-1” event listeners. The class throwing the StringEvent should have one reference to a listener and treat it like a unicast event. The add and remove methods should be used to maintain a transparent tree of multicasters to support multiple listeners. Parameters: node—the current value of the topmost event listener; listener—to remove from the multicast tree. Returns: the replacement node for the topmost event listener.
- 3) public void stringEvent (java.lang.String value). The event listener. Relays the passed event to two children listeners. Specified by: stringEvent in interface StringEventListener. Parameters: source—the mode or state that is changing; active—if the mode is becoming active or inactive.
- The following provides a description of the TriggerEventMulticaster class (public class TriggerEventMulticaster; extends java.lang.Object; implements TriggerEventListener): Class TriggerEventMulticaster is an event multicaster for the event TriggerEvent. Each instance branches to two listeners. Includes static helper routines for adding and removing listeners to the event throwing class.
- Method Summary: 1) static TriggerEventListener add (TriggerEventListener node, TriggerEventListener listener). Helper routine for any addTriggerEventListener routine. 2) static TriggerEventListener remove (TriggerEventListener node, TriggerEventListener listener). Helper routine for any removeTriggerEventListener routine. 3) void triggerEvent ( ). The event listener.
- Methods inherited from class java.lang.Object: equals, getClass, hashCode, notify, notifyAll, toString, wait.
- Method Detail: 1) public static TriggerEventListener add (TriggerEventListener node, TriggerEventListener listener). Helper routine for any addTriggerEventListener routine. Adds multicaster nodes as necessary to support “n” event listeners. The class throwing the TriggerEvent should have one reference to a listener and treat it like a unicast event. The add and remove methods should be used to maintain a transparent tree of multicasters to support multiple listeners. Parameters: node—the current value of the topmost event listener; listener—the new single event listener to add to the tree. Returns: the replacement node for the topmost event listener.
- 2) public static TriggerEventListener remove (TriggerEventListener node, TriggerEventListener listener). Helper routine for any removeTriggerEventListener routine. Removes multicaster nodes as necessary to support “n-1” event listeners. The class throwing the TriggerEvent should have one reference to a listener and treat it like a unicast event. The add and remove methods should be used to maintain a transparent tree of multicasters to support multiple listeners. Parameters: node—the current value of the topmost event listener; listener—to remove from the multicast tree. Returns: the replacement node for the topmost event listener.
- 3) public void triggerEvent ( ). The event listener. Relays the passed event to two children listeners. Specified by: triggerEvent in interface TriggerEventListener. Parameters: source—the mode or state that is changing; active—if the mode is becoming active or inactive.
- In the ARTEC model, each of the EventMulticaster classes maintains a list of the EventListeners registered to receive notification of the occurrence of the particular event. As new EventListeners are added, the new elements appear on the appropriate EventMulticaster list. As EventListeners are removed, the event multicaster objects are added to a listing of free nodes so as to avoid garbage collection generation. Subsequent listener additions will reuse any event multicaster objects that have been made available as a result of previous removals. To invoke any of the multicast events, the appropriate EventMulticaster calls the appropriate Event( ) methods of the related EventListeners starting with the first listener software component added and proceeding in order to the last listener software component registered. A communication of an event with only a single registered event listener component is actually implemented as a multicast that has just a single listener on the multicast list.
-
FIG. 6 depicts an architecture for interfacing a hardware device and client software, the architecture including ahardware device 600, an interruptcontroller component 602 and ahardware event object 604. Starting with the hardware end of the architecture, thehardware component 600 can be any of a wide variety of such components. For example, thehardware device 600 can be a button, key, or any other such input or signaling device. It can also be a pin of an interface. For example, it can be a pin of a General Purpose digital Input/Output (GPIO) port. A change in state of the hardware device, for example, will cause a signal to be output from thehardware device 600. - The signal from the
hardware device 600 is passed to the interruptcontroller component 602 and the interrupt controller triggers the appropriate interruptmethod 605 from its interrupt vector table and communicates 606 it to thehardware event object 604. Theproperties 610 of thehardware event object 604 can be set and retrieved viasetter 612 andgetter 614 methods. Theproperties 610 include PinID, PinState, OutputPin, PinReportPolicy and ReportThread. Thehardware event object 604 includes a first-in-first-out (FIFO)data structure 616 and adispatch thread 618. - Via the architecture of
FIG. 6 , the interrupt can eventually precipitate the sending of a software event to the appropriate user event handlers of the registered listener software components. Since it is often not desirable to send these events at an interrupt priority level, adispatch thread 618 is included. Thedispatch thread 618 can wait for the state change and then send an event notification to user code at a priority level that is lower than the original interrupt priority level. - Upon receipt by the hardware event object, the interrupt
event 606 is communicated directly to thedispatch thread 618 to wake it up if necessary. The interruptevent 606 is also placed into theFIFO queue 616. Thedispatch thread 618 then works through and services each received interruptevent 606 in the order in which it was received. As it services each of the interrupt events received from theFIFO 616, thedispatch thread 618 causes the appropriate software events to be generated andoutput 620. - The
dispatch thread 618 is a thread that sleeps until some event requiring servicing is received. It is awakened by an invocation of its wake method (upon receipt of an interrupt event for example) and it will then service the tasks until each has been completed. It is usually desirable to give thedispatch thread 618 an elevated priority level (for example one higher than any calling thread). Once awakened, the dispatch thread will poll all registered listeners and service them if required. - When, for example, the
hardware device 600 is a GPIO pin, a change in pin state will precipitate the generation of an interrupt. An interruptevent 606 will subsequently be forwarded to thehardware event object 604. Each pin state change will thus by forwarded to thehardware event object 604 and placed into theFIFO 616. Thedispatch thread 618 will service each interrupt event by forwarding it as a software event to each of the event's registered listeners. In this embodiment, each pin of the port would be associated with a dedicated interrupt method and hardware event object. In one embodiment, the default is to use one dispatch thread for all of the GPIO pins. If, however, different priorities are required for different pins, a new dispatch thread can be assigned to each pin. - If desired, the architecture of
FIG. 6 can be used with the model disclosed in relation toFIG. 1 or as disclosed in FIGS. 1 though 5. In such a case, thesoftware event output 620 from thehardware event object 604 can be a cracked event. Further, the outputted cracked event, if desired, can then be multicasted in the manner disclosed inFIGS. 2 through 5 . - It is thought that the method and apparatus of the present invention will be understood from the description provided throughout this specification, including the drawings and the appended claims, and that it will be apparent that various changes may be made in the form, construct steps and arrangement of the parts and steps thereof, without departing from the spirit and scope of the invention or sacrificing all of their material advantages. The forms herein described are merely representative embodiments thereof. For example, although some embodiments of the invention have been described in relation to the JavaBeans Component Architecture and the JAVA programming language, the present inventions are capable of being used with other types of component architectures and programming languages that have been, or will be, developed.
Claims (20)
1. An apparatus for associating a hardware interrupt event with a software component event, comprising:
a hardware interrupt signal input interface;
a first-in-first-out data structure coupled with said hardware interrupt signal input interface and comprising a first-in-first-out output interface; and
a dispatch thread component comprising, an event input coupled with said first-in-first-out output, and a dispatch thread output interface, said dispatch thread component creating a software event to be output via said dispatch thread output interface.
2. The apparatus of claim 1 , wherein said dispatch thread component further comprises a wake-up input interface coupled with said hardware interrupt signal input interface.
3. The apparatus of claim 2 , further comprising an interrupt controller component, said interrupt controller component comprising a plurality of interrupt methods, said interrupt controller component further comprising an interrupt event signal output coupled with said hardware interrupt signal input interface.
4. The apparatus of claim 3 , further comprising a hardware interrupt generating component coupled with said interrupt controller component, and wherein an interrupt method of said plurality of interrupt methods is responsive to an interrupt signal generated by said hardware interrupt generating component.
5. The apparatus of claim 4 , wherein said hardware interrupt generating component comprises an input/output pin.
6. The apparatus of claim 5 , wherein said input/output pin is a pin of a General Purpose Input Output interface.
7. The apparatus of claim 1 , wherein said dispatch thread component further comprises at least one associated property, and further comprising a property getter interface and a property setter interface each capable of accessing said at least one associated property.
8. The apparatus of claim 4 , further comprising:
a first listener software component, comprising first code to receive a software event generated by said dispatch thread; and
an event transmission object, said event transmission object comprising a primitive data type parameter that conveys data describing an event related to a software event.
9. The apparatus of claim 8 , further comprising a first event multicaster object, said first event multicaster object comprising a first reference, said first reference identifying said first listener software component, said first event multicaster object further comprising a first multicaster object event input interface, wherein said first event multicaster object can receive said event transmission object and pass, via said first reference, said event transmission object to said first listener software component.
10. The apparatus of claim 9 , further comprising a second listener software component comprising second code to receive a software event generated by said dispatch thread, and wherein said first event multicaster object further comprises a second reference, said second reference identifying said second listener software component, wherein said first event multicaster object can pass, via said second reference, said event transmission object to said second listener software component.
11. The apparatus of claim 10 , wherein said first listener software component comprises a first event handler, wherein said second listener software component comprises a second event handler and wherein said first event multicaster object further comprises code to call said first event handler and then to call said second event handler.
12. The apparatus of claim 11 , further comprising a second event multicaster object, said second event multicaster object comprising a first reference, said first reference identifying said first event multicaster object, said second event multicaster object further comprising a second multicaster object event input interface, wherein said second event multicaster object can receive said event transmission object and pass, via said first reference, said event transmission object to said first event multicaster object.
13. The apparatus of claim 12 , further comprising a third listener software component comprising third code to receive a software event generated by said dispatch thread, and wherein said second event multicaster object further comprises a second reference, said second reference identifying said third listener software component, wherein said second event multicaster object can pass, via said second reference, said event transmission object to said third listener software component.
14. The apparatus of claim 13 , wherein said third listener software component comprises a third event handler, and wherein said second event multicaster object further comprises code to pass said event transmission object to a said first event multicaster object and to call said third event handler after said second event handler has been called by said first event multicaster object.
15. The apparatus of claim 9 , wherein said hardware event object further comprises a listener add method.
16. The apparatus of claim 10 , further comprising:
a second listener software component, comprising second code to receive a software event generated by said dispatch thread;
one or more additional listener software components, each comprising code to receive a software event generated by said dispatch thread; and
one or more event multicaster objects, each said one or more event multicaster objects comprising a first object reference and a second object reference;
wherein said one or more event multicaster objects, said second listener software component and said one or more additional listener software components are linked via each of said first object references and each of said second object references such that a system having “n” listener software components will have “n-1” event multicaster objects, “n” representing any positive integer greater than positive three.
17. An apparatus for associating a hardware interrupt event with a software component event, comprising:
a hardware interrupt signal input interface;
means, coupled with said hardware interrupt signal input interface, for storing in a first-in-first-out manner, hardware interrupt signals received via said hardware interrupt signal input interface; and
means, coupled with said means for storing, for retrieving the next signal to be output from said means for storing, and for then outputting a software event related to the retrieved signal.
18. The apparatus of claim 17 , further comprising:
a first listener software component, comprising first means for receiving a software event output by said means for retrieving; and
means for transmitting a primitive data type parameter from said means for retrieving to said first listener software component, said means for transmitting conveying data related to the outputted software event.
19. The apparatus of claim 18 , further comprising a first event multicaster object, said first event multicaster object comprising a first reference, said first reference identifying said first listener software component, said first event multicaster object further comprising a first multicaster object event input interface, wherein said first event multicaster object can receive said means for transmitting and pass, via said first reference, said means for transmitting to said first means for receiving; and further comprising a second listener software component comprising second means for receiving a software event output by said means for retrieving, and wherein said first event multicaster object further comprises a second reference, said second reference identifying said second listener software component, wherein said first event multicaster object can pass, via said second reference, said means for transmitting to said second means for receiving.
20. The apparatus of claim 18 , further comprising:
a second listener software component, comprising second means for receiving a software event output by said means for retrieving;
one or more additional listener software components, each comprising means for receiving a software event output by said means for retrieving; and
one or more event multicaster objects, each said one or more event multicaster objects comprising a first reference and a second reference;
wherein said one or more event multicaster objects, said second listener software component and said one or more additional listener software components are linked via each of said first object references and each of said second object references such that a system having “n” listener software components will have “n-1” event multicaster objects, “n” representing any positive integer greater than positive three.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US11/435,359 US20060294527A1 (en) | 2001-03-07 | 2006-05-16 | Apparatus and method for interfacing hardware events with software events |
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US27385801P | 2001-03-07 | 2001-03-07 | |
US10/093,952 US20020165999A1 (en) | 2001-03-07 | 2002-03-07 | Apparatus and method for interfacing hardware events with software events |
US11/435,359 US20060294527A1 (en) | 2001-03-07 | 2006-05-16 | Apparatus and method for interfacing hardware events with software events |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US10/093,952 Continuation US20020165999A1 (en) | 2001-03-07 | 2002-03-07 | Apparatus and method for interfacing hardware events with software events |
Publications (1)
Publication Number | Publication Date |
---|---|
US20060294527A1 true US20060294527A1 (en) | 2006-12-28 |
Family
ID=26788083
Family Applications (3)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US10/093,952 Abandoned US20020165999A1 (en) | 2001-03-07 | 2002-03-07 | Apparatus and method for interfacing hardware events with software events |
US10/093,943 Expired - Fee Related US7114163B2 (en) | 2001-03-07 | 2002-03-07 | Software component model for time sensitive embedded applications |
US11/435,359 Abandoned US20060294527A1 (en) | 2001-03-07 | 2006-05-16 | Apparatus and method for interfacing hardware events with software events |
Family Applications Before (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US10/093,952 Abandoned US20020165999A1 (en) | 2001-03-07 | 2002-03-07 | Apparatus and method for interfacing hardware events with software events |
US10/093,943 Expired - Fee Related US7114163B2 (en) | 2001-03-07 | 2002-03-07 | Software component model for time sensitive embedded applications |
Country Status (1)
Country | Link |
---|---|
US (3) | US20020165999A1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070255716A1 (en) * | 2006-04-28 | 2007-11-01 | Sap Ag | Timer service computer program components |
US20090183170A1 (en) * | 2008-01-15 | 2009-07-16 | Gharpure Jagannath T | Event-Driven Component Integration Framework for Implementing Distributed Systems |
US20140068636A1 (en) * | 2012-09-06 | 2014-03-06 | Accedian Networks Inc. | Multicasting of event notifications using extended socket for inter-process communication |
Families Citing this family (48)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100375013C (en) | 2002-04-08 | 2008-03-12 | 国际商业机器公司 | Method and system for problem determination in distributed enterprise applications |
JP4528116B2 (en) | 2002-06-25 | 2010-08-18 | インターナショナル・ビジネス・マシーンズ・コーポレーション | Method and system for monitoring application performance in a distributed environment |
US7281252B1 (en) * | 2003-03-12 | 2007-10-09 | Microsoft Corporation | Method, system, and apparatus for implementing object interfaces at runtime |
US7480921B1 (en) | 2003-03-12 | 2009-01-20 | Microsoft Corporation | Method, system, and apparatus for customizing web parts |
US7657893B2 (en) | 2003-04-23 | 2010-02-02 | International Business Machines Corporation | Accounting method and logic for determining per-thread processor resource utilization in a simultaneous multi-threaded (SMT) processor |
US7350060B2 (en) * | 2003-04-24 | 2008-03-25 | International Business Machines Corporation | Method and apparatus for sending thread-execution-state-sensitive supervisory commands to a simultaneous multi-threaded (SMT) processor |
US7155600B2 (en) * | 2003-04-24 | 2006-12-26 | International Business Machines Corporation | Method and logical apparatus for switching between single-threaded and multi-threaded execution states in a simultaneous multi-threaded (SMT) processor |
US7290261B2 (en) * | 2003-04-24 | 2007-10-30 | International Business Machines Corporation | Method and logical apparatus for rename register reallocation in a simultaneous multi-threaded (SMT) processor |
WO2005013130A1 (en) * | 2003-08-04 | 2005-02-10 | Hitachi, Ltd. | Real time control system |
CA2451421A1 (en) * | 2003-11-28 | 2005-05-28 | Globestar Systems | Event management system |
US20050144535A1 (en) * | 2003-12-12 | 2005-06-30 | Murray Daniel J. | Process and apparatus of notifying a reference model of the occurrence of an event in a monitored interface |
GB2411331A (en) | 2004-02-19 | 2005-08-24 | Trigenix Ltd | Rendering user interface using actor attributes |
US8005937B2 (en) * | 2004-03-02 | 2011-08-23 | Fatpot Technologies, Llc | Dynamically integrating disparate computer-aided dispatch systems |
CN100362500C (en) * | 2004-10-11 | 2008-01-16 | 佛山市顺德区顺达电脑厂有限公司 | Method for controlling and raising efficiency of driver program by using software events |
US8255912B2 (en) * | 2005-04-13 | 2012-08-28 | Qualcomm Incorporated | Techniques for setting events in a multi-threaded system |
US8171499B2 (en) * | 2005-07-22 | 2012-05-01 | International Business Machines Corporation | Apparatus, system, and method for object clone event notification |
US8812684B1 (en) | 2006-09-28 | 2014-08-19 | Rockwell Automation Technologies, Inc. | Messaging configuration system |
US8127035B1 (en) | 2006-09-28 | 2012-02-28 | Rockwell Automation Technologies, Inc. | Distributed message engines and systems |
US8131832B1 (en) | 2006-09-28 | 2012-03-06 | Rockwell Automation Technologies, Inc. | Message engine searching and classification |
US8782249B1 (en) | 2006-09-28 | 2014-07-15 | Rockwell Automation Technologies, Inc. | Message engine |
US8166194B2 (en) * | 2006-12-13 | 2012-04-24 | Microsoft Corporation | Lock-free shared audio buffer |
WO2010004572A2 (en) * | 2008-07-09 | 2010-01-14 | Invention Labs Engineering Products Pvt. Ltd. | An innovative method of implementing embedded systems with increased design speed and efficiency |
US8161493B2 (en) * | 2008-07-15 | 2012-04-17 | International Business Machines Corporation | Weighted-region cycle accounting for multi-threaded processor cores |
US20100205034A1 (en) * | 2009-02-09 | 2010-08-12 | William Kelly Zimmerman | Methods and apparatus to model consumer awareness for changing products in a consumer purchase model |
US20100306028A1 (en) * | 2009-06-02 | 2010-12-02 | Wagner John G | Methods and apparatus to model with ghost groups |
CN101963900B (en) * | 2009-07-23 | 2013-10-16 | 北京数码大方科技股份有限公司 | Behavior propagation control method of UI (User Interface) layer |
US20110071874A1 (en) * | 2009-09-21 | 2011-03-24 | Noemie Schneersohn | Methods and apparatus to perform choice modeling with substitutability data |
US20120259676A1 (en) | 2011-04-07 | 2012-10-11 | Wagner John G | Methods and apparatus to model consumer choice sourcing |
US9311383B1 (en) | 2012-01-13 | 2016-04-12 | The Nielsen Company (Us), Llc | Optimal solution identification system and method |
US9785995B2 (en) | 2013-03-15 | 2017-10-10 | The Nielsen Company (Us), Llc | Method and apparatus for interactive evolutionary algorithms with respondent directed breeding |
US9799041B2 (en) | 2013-03-15 | 2017-10-24 | The Nielsen Company (Us), Llc | Method and apparatus for interactive evolutionary optimization of concepts |
US9665372B2 (en) | 2014-05-12 | 2017-05-30 | International Business Machines Corporation | Parallel slice processor with dynamic instruction stream mapping |
US9672043B2 (en) | 2014-05-12 | 2017-06-06 | International Business Machines Corporation | Processing of multiple instruction streams in a parallel slice processor |
US9760375B2 (en) | 2014-09-09 | 2017-09-12 | International Business Machines Corporation | Register files for storing data operated on by instructions of multiple widths |
US9720696B2 (en) | 2014-09-30 | 2017-08-01 | International Business Machines Corporation | Independent mapping of threads |
US9977678B2 (en) | 2015-01-12 | 2018-05-22 | International Business Machines Corporation | Reconfigurable parallel execution and load-store slice processor |
US10133576B2 (en) | 2015-01-13 | 2018-11-20 | International Business Machines Corporation | Parallel slice processor having a recirculating load-store queue for fast deallocation of issue queue entries |
US10133581B2 (en) | 2015-01-13 | 2018-11-20 | International Business Machines Corporation | Linkable issue queue parallel execution slice for a processor |
US10147108B2 (en) | 2015-04-02 | 2018-12-04 | The Nielsen Company (Us), Llc | Methods and apparatus to identify affinity between segment attributes and product characteristics |
US9983875B2 (en) | 2016-03-04 | 2018-05-29 | International Business Machines Corporation | Operation of a multi-slice processor preventing early dependent instruction wakeup |
US10037211B2 (en) | 2016-03-22 | 2018-07-31 | International Business Machines Corporation | Operation of a multi-slice processor with an expanded merge fetching queue |
US10346174B2 (en) | 2016-03-24 | 2019-07-09 | International Business Machines Corporation | Operation of a multi-slice processor with dynamic canceling of partial loads |
US10761854B2 (en) | 2016-04-19 | 2020-09-01 | International Business Machines Corporation | Preventing hazard flushes in an instruction sequencing unit of a multi-slice processor |
US10037229B2 (en) | 2016-05-11 | 2018-07-31 | International Business Machines Corporation | Operation of a multi-slice processor implementing a load/store unit maintaining rejected instructions |
US9934033B2 (en) | 2016-06-13 | 2018-04-03 | International Business Machines Corporation | Operation of a multi-slice processor implementing simultaneous two-target loads and stores |
US10042647B2 (en) | 2016-06-27 | 2018-08-07 | International Business Machines Corporation | Managing a divided load reorder queue |
US10318419B2 (en) | 2016-08-08 | 2019-06-11 | International Business Machines Corporation | Flush avoidance in a load store unit |
CN115515079B (en) * | 2022-08-05 | 2023-06-27 | 福建新大陆通信科技股份有限公司 | Emergency broadcasting equipment LTE module management method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6385662B1 (en) * | 1997-10-03 | 2002-05-07 | Ericsson Inc. | Method of processing information using a personal communication assistant |
US6681342B2 (en) * | 1997-05-13 | 2004-01-20 | Micron Technology, Inc. | Diagnostic and managing distributed processor system |
US6760783B1 (en) * | 1999-05-21 | 2004-07-06 | Intel Corporation | Virtual interrupt mechanism |
US6931553B1 (en) * | 2000-04-20 | 2005-08-16 | Microsoft Corporation | Preventing general purpose event interrupt storms in a computer system |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5628017A (en) * | 1993-03-15 | 1997-05-06 | Microsoft Corporation | Method and system for providing event-response capabilities to pseudocode |
US6549928B1 (en) * | 1998-04-29 | 2003-04-15 | Xerox Corporation | Machine control integrating event based model with task based model |
US6023271A (en) * | 1998-06-11 | 2000-02-08 | Sun Microsystems, Inc. | Framework for binding data viewers/data manipulation with one to many objects through introspection |
US6748455B1 (en) * | 1999-02-23 | 2004-06-08 | Microsoft Corporation | Object connectivity through loosely coupled publish and subscribe events with filtering |
-
2002
- 2002-03-07 US US10/093,952 patent/US20020165999A1/en not_active Abandoned
- 2002-03-07 US US10/093,943 patent/US7114163B2/en not_active Expired - Fee Related
-
2006
- 2006-05-16 US US11/435,359 patent/US20060294527A1/en not_active Abandoned
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6681342B2 (en) * | 1997-05-13 | 2004-01-20 | Micron Technology, Inc. | Diagnostic and managing distributed processor system |
US6385662B1 (en) * | 1997-10-03 | 2002-05-07 | Ericsson Inc. | Method of processing information using a personal communication assistant |
US6760783B1 (en) * | 1999-05-21 | 2004-07-06 | Intel Corporation | Virtual interrupt mechanism |
US6931553B1 (en) * | 2000-04-20 | 2005-08-16 | Microsoft Corporation | Preventing general purpose event interrupt storms in a computer system |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070255716A1 (en) * | 2006-04-28 | 2007-11-01 | Sap Ag | Timer service computer program components |
US8046731B2 (en) * | 2006-04-28 | 2011-10-25 | Sap Ag | Timer service computer program components |
US20090183170A1 (en) * | 2008-01-15 | 2009-07-16 | Gharpure Jagannath T | Event-Driven Component Integration Framework for Implementing Distributed Systems |
US8612997B2 (en) | 2008-01-15 | 2013-12-17 | International Business Machines Corporation | Event-driven component integration framework for implementing distributed systems |
US8799930B2 (en) | 2008-01-15 | 2014-08-05 | International Business Machines Corporation | Event-driven component integration framework for implementing distributed systems |
US20140068636A1 (en) * | 2012-09-06 | 2014-03-06 | Accedian Networks Inc. | Multicasting of event notifications using extended socket for inter-process communication |
US9524197B2 (en) * | 2012-09-06 | 2016-12-20 | Accedian Networks Inc. | Multicasting of event notifications using extended socket for inter-process communication |
US10365957B2 (en) | 2012-09-06 | 2019-07-30 | Accedian Networks Inc. | Multicasting of event notifications using extended socket for inter-process communication |
Also Published As
Publication number | Publication date |
---|---|
US20020165999A1 (en) | 2002-11-07 |
US7114163B2 (en) | 2006-09-26 |
US20020163520A1 (en) | 2002-11-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7114163B2 (en) | Software component model for time sensitive embedded applications | |
US6075939A (en) | Tightly coupled, scalable module based micro-kernel operating system architecture | |
JP3872690B2 (en) | System and method for providing a pool of reusable threads for performing queued work items | |
US6012081A (en) | Service and event synchronous/asynchronous manager | |
US6748455B1 (en) | Object connectivity through loosely coupled publish and subscribe events with filtering | |
US20020161957A1 (en) | Methods and systems for handling interrupts | |
US20020120924A1 (en) | System of reusable software parts for distributing event flows and methods of use | |
JPH03126158A (en) | Method and apparatus for scheduling | |
JPH05204673A (en) | Method and process of communication between process using named pipe | |
JPH10500509A (en) | Event distribution apparatus and method in operating system | |
Boussinot et al. | The SugarCubes tool box: a reactive Java framework | |
CN108008950B (en) | Method and device for realizing user interface updating | |
KR20040062394A (en) | Method And Apparatus For Managing Thread Excution In A Multithreaded Application | |
EP0954918A1 (en) | System and method for communications and process management in a distributed telecommunications switch | |
CN113778706B (en) | Inter-core communication method of operation system based on AMP architecture | |
Bocking et al. | CHANNELS: a run-time system for multimedia protocols | |
EP1265148B1 (en) | Using software interrupts to manage communication between data processors | |
US7380248B1 (en) | Queue alerts | |
Ziaei et al. | SynchNet: a petri net based coordination language for distributed objects | |
Angelov et al. | Distributed timed multitasking-a model of computation for hard real-time distributed systems | |
Cable | Extensible Runtime Containment and Server Protocol for JavaBeans Version 1.0 | |
Nigro et al. | A modular approach to real time programming using actors and Java | |
Richling et al. | Automatic composition of timed Petri net specifications for a real-time architecture | |
KR100281870B1 (en) | Interprocess communication method of operating system operating in data processing system | |
CN100426808C (en) | Method for implementing interplate object communication |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
STCB | Information on status: application discontinuation |
Free format text: ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION |