Documentation ¶
Index ¶
- type NodeInfo
- type OtnsTest
- func (ot *OtnsTest) AddNode(role string) NodeId
- func (ot *OtnsTest) Command(cmd string) []string
- func (ot *OtnsTest) Commandf(format string, args ...interface{}) []string
- func (ot *OtnsTest) DeleteNode(ids ...NodeId)
- func (ot *OtnsTest) ExpectNoError(err error)
- func (ot *OtnsTest) ExpectTrue(value bool, msgAndArgs ...interface{})
- func (ot *OtnsTest) ExpectVisualizeAddNode(nodeid NodeId, x int, y int, radioRange int)
- func (ot *OtnsTest) ExpectVisualizeEvent(match func(evt *visualize_grpc_pb.VisualizeEvent) bool)
- func (ot *OtnsTest) GetNodeState(id NodeId) string
- func (ot *OtnsTest) Go(duration time.Duration)
- func (ot *OtnsTest) Join()
- func (ot *OtnsTest) ListNodes() map[NodeId]*NodeInfo
- func (ot *OtnsTest) RemoveAllNodes()
- func (ot *OtnsTest) Reset()
- func (ot *OtnsTest) SetPacketLossRatio(ratio float32)
- func (ot *OtnsTest) SetSpeed(speed int)
- func (ot *OtnsTest) Shutdown()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OtnsTest ¶
func NewOtnsTest ¶
func (*OtnsTest) DeleteNode ¶
func (ot *OtnsTest) DeleteNode(ids ...NodeId)
func (*OtnsTest) ExpectNoError ¶
func (*OtnsTest) ExpectTrue ¶
func (*OtnsTest) ExpectVisualizeAddNode ¶
func (*OtnsTest) ExpectVisualizeEvent ¶
func (ot *OtnsTest) ExpectVisualizeEvent(match func(evt *visualize_grpc_pb.VisualizeEvent) bool)
func (*OtnsTest) GetNodeState ¶
func (*OtnsTest) RemoveAllNodes ¶
func (ot *OtnsTest) RemoveAllNodes()
func (*OtnsTest) SetPacketLossRatio ¶
Click to show internal directories.
Click to hide internal directories.