Device class

A Cisco IOS device.

Constructors

Device(String id)
Creates a Cisco IOS device that emulates a terminal.
Device.comments(String id)
Creates a Cisco IOS device that emulates a terminal with comments.
Device.script(String id)
Creates a Cisco IOS device that is scriptable.
Device.scriptWithComments(String id)
Creates a Cisco IOS device that is scriptable and shows comments.

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
This device's ID.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scope → ScopeStack
The device's scope controller.
final

Methods

comment(String message) → void
Prints the given comment.
enable(void body(PriviledgedScope x)) → void
Enters the device's priviledged scope.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run(String command) → void
Runs the given command.
toString() String
A string representation of this object.
inherited
useScope<T>(Scope newScope, String command, void body(T x)) → void
Enters the given scope, runs the body, and exits.

Operators

operator ==(Object other) bool
The equality operator.
inherited