|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttesl.Clock<T>
modhelxs.simulation.DrivingClock<java.lang.Long>
modhelxs.simulation.EventFeederClock
modhelxs.simulation.SwingButtonClock
public class SwingButtonClock
A SwingButtonClock is an event feeder clock that ticks when a Swing button is pressed.
| Field Summary | |
|---|---|
private javax.swing.JButton |
button_
the swing button for this clock. |
| Fields inherited from class modhelxs.simulation.DrivingClock |
|---|
listener_ |
| Constructor Summary | |
|---|---|
SwingButtonClock(java.lang.String name,
java.lang.String buttonName)
Build a new SwingButton clock |
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent arg0)
Called when the button is pressed. |
void |
activate()
Activate the clock: make it ready to produce a tick and notify the engine. |
javax.swing.JButton |
getButton()
Get the Swing button associated to this clock. |
void |
wrapup()
Disable the button when the simulation is finished. |
| Methods inherited from class modhelxs.simulation.EventFeederClock |
|---|
backup, cancel, eventOccurred, newTick, removeTick, removeTick, resetClock, restore |
| Methods inherited from class modhelxs.simulation.DrivingClock |
|---|
getDrivingClocks, setListener |
| Methods inherited from class tesl.Clock |
|---|
affineTags, cleanUp, createMasterImplication, createSlaveImplication, filteredImplies, getClockSet, getFirstTaggedTick, getFloatingTick, getName, getNowTick, getNumberOfTicks, getTag, getTagCalculus, getTagValue, getTick, getTick, getTick, getTicks, hasFloatingTick, hasTaggedTick, hasTickNow, hasTicks, implies, impliesThroughFilter, impliesWithDelay, impliesWithDelay, isGreedy, isNow, newTick, sameTags, setClockSet, setGreedy, setNow, setTag, setTagValue, sustains, sustains, tagDifference, tagProduct, tagQuotient, tagSum, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private javax.swing.JButton button_
| Constructor Detail |
|---|
public SwingButtonClock(java.lang.String name,
java.lang.String buttonName)
name - the name of the clockbuttonName - the name of the button| Method Detail |
|---|
public javax.swing.JButton getButton()
public void actionPerformed(java.awt.event.ActionEvent arg0)
actionPerformed in interface java.awt.event.ActionListenerpublic void activate()
DrivingClock
activate in class EventFeederClockpublic void wrapup()
wrapup in class EventFeederClock
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||