|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DeviceParser
This interface represents any class that parses specific devices
from a network definition file. The parseLine method is used
to add a device to a network from a string representation of the device, while the
getString method is used to serialise a device into a string representation.
| Method Summary | |
|---|---|
java.lang.String |
getString(java.lang.Object object)
Serialises the given object into a string representation for writing to a network definition file. |
void |
parseLine(java.lang.String line,
Network network)
Parses a line of a network definition file by instantiating a network device described by the given string and adding it to the given network. |
| Method Detail |
|---|
void parseLine(java.lang.String line,
Network network)
throws ParseException
line - A line of a network definition file.network - The network to add the device to.
ParseExceptionjava.lang.String getString(java.lang.Object object)
object - The network device to serialise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||