|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.speckled.specksim.imp.specks.AbstractSpeck
com.speckled.specksim.imp.specks.CollisionSpeck
public class CollisionSpeck
This speck type continually broadcasts extremely long messages. I used it to test the broadcast collision code
| Field Summary |
|---|
| Fields inherited from class com.speckled.specksim.imp.specks.AbstractSpeck |
|---|
name, RNG_OFFSET_CONF_DESC, RNG_OFFSET_CONF_NAME, simulator |
| Fields inherited from interface com.speckled.specksim.Speck |
|---|
ID_BITS, SPECK_LOG_SOURCE |
| Constructor Summary | |
|---|---|
CollisionSpeck()
Standard constructor |
|
| Method Summary | |
|---|---|
void |
deInit()
Called when the speck is removed from the simulator. |
Configurator |
getConfigurator()
Gets a Configurator object that describes and can manipulate the variables of this Configurable. |
SpeckState |
getState()
Takes a snapshot of the state of this speck. |
void |
init()
Called when the speck is added to the simulator, and when the simulator is reset. |
void |
shellEncountered(Speck sender,
MessageShell shell,
Message message)
Called when the simulator determines that this speck lies within the bounds of a transmission. |
void |
toggleBeacon()
Toggles the speck's beacon status |
| Methods inherited from class com.speckled.specksim.imp.specks.AbstractSpeck |
|---|
getFlavourName, getRandom, getRandomSeedOffset, id, initialise, isLoggingEnabled, setID, setLoggingEnabled, setRandomSeedOffset, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CollisionSpeck()
| Method Detail |
|---|
public void toggleBeacon()
ToggleableBeacon
toggleBeacon in interface ToggleableBeaconpublic void init()
AbstractSpeck
init in class AbstractSpeckpublic void deInit()
SpeckSimulationEvents that have this
speck as a parent will automatically be removed for you.
deInit in interface Speck
public void shellEncountered(Speck sender,
MessageShell shell,
Message message)
Speck
shellEncountered in interface Specksender - The speck that sent the messageshell - The shell used to send the messagemessage - The content of the messagepublic SpeckState getState()
Speck
getState in interface Speckpublic Configurator getConfigurator()
Configurable
getConfigurator in interface Configurable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||