|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectexperiment.entity.Entity
experiment.entity.Link
public class Link
Created by IntelliJ IDEA. User: andy Date: Mar 10, 2010 Represent's an experiment link and stores all the link's data.
Field Summary | |
---|---|
static boolean |
defaultIsEncrypted
Static default variables |
static boolean |
defaultIsVirtual
|
static Rssi |
defaultRssi
|
Fields inherited from class experiment.entity.Entity |
---|
capabilityMap, enabled, entity3d, isNode, lock, state |
Constructor Summary | |
---|---|
Link(ExperimentState state,
Node source,
Node target,
java.lang.String encrypted,
java.lang.String virtual,
Rssi rssi)
Full Constructor. |
Method Summary | |
---|---|
static void |
addDefaultCapability(Capability dC)
Is called during experiment configurarion to set the default link capabilities |
Rssi |
getRssi()
|
Node |
getSource()
|
Node |
getTarget()
|
boolean |
isEncrypted()
|
boolean |
isVirtual()
|
void |
setEncrypted(boolean encrypted)
Set encryption mode. |
void |
setRssi(Rssi rssi)
Set the Link's rssi. |
Methods inherited from class experiment.entity.Entity |
---|
getCapability, getCapabilitySet, getEntity3d, getState, isEnabled, isNode, setCapability, setCapability, setEntity3d, setMonitored, setState, setStatus, updated |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean defaultIsEncrypted
public static boolean defaultIsVirtual
public static Rssi defaultRssi
Constructor Detail |
---|
public Link(ExperimentState state, Node source, Node target, java.lang.String encrypted, java.lang.String virtual, Rssi rssi)
state
- the object that contains all the data for a given experiment statesource
- the source Nodetarget
- the target Nodeencrypted
- is a Boolean value in a String indicating if the link is encrypted or not.virtual
- is a Boolean value in a String indicating if the link is virtual or not.rssi
- specifies the RSSI value on the linkMethod Detail |
---|
public static void addDefaultCapability(Capability dC)
dC
- the capability to be setpublic Rssi getRssi()
public Node getSource()
public Node getTarget()
public boolean isEncrypted()
public boolean isVirtual()
public void setEncrypted(boolean encrypted)
encrypted
- true if the link is enscryptedpublic void setRssi(Rssi rssi)
rssi
- the new rssi object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |