|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.speckled.specksim.imp.shells.RealisticRadioShell
public class RealisticRadioShell
This MessageShell uses a datafile that those clever people in Glasgow can generate to model the propagation of radio in a more realistic way. See the file radioShell.txt for an example
| Constructor Summary | |
|---|---|
RealisticRadioShell()
|
|
RealisticRadioShell(RealisticRadioShell shell)
Constructs a new shell, identical to the argument |
|
| Method Summary | |
|---|---|
MessageShell |
clone()
Override this method to return a copy of this MessageShell. |
float |
getBitRate()
Gets the data transmission speed, in kilobits per second. |
Vector3d[] |
getBoundingBox(SpeckPosition orientation)
Works out an axis-aligned bounding box for this message shell. |
int |
getChannelID()
Gets an identifier for the channel used by this shell. |
Configurator |
getConfigurator()
Gets a Configurator object that describes and can manipulate the variables of this Configurable. |
float |
getMaxEnergy()
Gets the current highest radiated energy data point |
SpeckPosition |
getOrientationOffset()
Gets the offset that this shell has from the position and orientation of the owning speck |
float[] |
getPhiValues()
Gets the values of phi for which there are radiated energy values |
float[][] |
getRadiatedEnergyValues()
Gets the radiated energy values, indexed by (theta, phi) |
float |
getRange()
Gets the current max range of the shell |
float[] |
getThetaValues()
Gets the values of theta for which there are radiated energy values |
boolean |
hit(Speck sender,
SpeckPosition senderOrientation,
Speck target,
SpeckPosition targetOrientation)
Checks to see if the sender can reach the target. |
void |
setOrientationOffset(SpeckPosition offset)
Sets the values of the offset that this shell will have with respect to the position and orientation of the owning speck |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RealisticRadioShell()
public RealisticRadioShell(RealisticRadioShell shell)
shell - The shell to copy| Method Detail |
|---|
public boolean hit(Speck sender,
SpeckPosition senderOrientation,
Speck target,
SpeckPosition targetOrientation)
MessageShell
hit in interface MessageShellsender - The sending specksenderOrientation - The position of the sending speck at the time of
transmissiontarget - The prospective receiving specktargetOrientation - The position of the target speck at the time of
transmission
public float[] getThetaValues()
public float[] getPhiValues()
public float[][] getRadiatedEnergyValues()
public float getMaxEnergy()
public float getRange()
public Vector3d[] getBoundingBox(SpeckPosition orientation)
MessageShell
getBoundingBox in interface MessageShellorientation - The orientation of the sending speck at the time of
transmission
public float getBitRate()
MessageShell
getBitRate in interface MessageShellpublic int getChannelID()
MessageShell
getChannelID in interface MessageShellpublic Configurator getConfigurator()
Configurable
getConfigurator in interface Configurablepublic MessageShell clone()
MessageShell
clone in interface MessageShellclone in class java.lang.Objectpublic SpeckPosition getOrientationOffset()
public void setOrientationOffset(SpeckPosition offset)
offset - The new offset values. Note that the values will be
copied, so getOrientationOffset() will not return the
supplied object in future.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||