Package edu.nps.moves.dis7.utilities
Class SimulationManager.RecordType
java.lang.Object
edu.nps.moves.dis7.utilities.SimulationManager.RecordType
- Enclosing class:
SimulationManager
Simple simulation record type
-
Constructor Summary
ConstructorsConstructorDescriptionRecordType
(int id, String name) Utility constructor for new record, description and reference remain blankRecordType
(int id, String name, boolean isHostType) Utility constructor for new record, description and reference remain blankRecordType
(int id, String name, String description, String reference) Constructor for new record -
Method Summary
Modifier and TypeMethodDescriptiongetAlias()
get record alias nameget record descriptionint
getId()
get record idgetName()
get record nameget record referenceboolean
Does record represent a network addressset record alias namesetDescription
(String newDescription) set record descriptionsetId
(int newID) set record idset record namevoid
setNetworkAddress
(boolean isAddress) Set whether record represents a network addresssetReference
(String newReference) set record referencetoString()
Simple representation of record
-
Constructor Details
-
RecordType
Constructor for new record- Parameters:
id
- identifying numbername
- common namedescription
- longer descriptionreference
- formal reference for this record, if any
-
RecordType
Utility constructor for new record, description and reference remain blank- Parameters:
id
- identifying numbername
- common name
-
RecordType
Utility constructor for new record, description and reference remain blank- Parameters:
id
- identifying numbername
- common nameisHostType
- whether or not this record is for a host
-
-
Method Details
-
toString
Simple representation of record -
getId
public int getId()get record id- Returns:
- the id
-
setId
set record id- Parameters:
newID
- the id to set- Returns:
- same object to permit progressive setters
-
getName
get record name- Returns:
- the name
-
setName
set record name- Parameters:
newName
- the name to set- Returns:
- same object to permit progressive setters
-
getDescription
get record description- Returns:
- the description
-
setDescription
set record description- Parameters:
newDescription
- the description to set- Returns:
- same object to permit progressive setters
-
getReference
get record reference- Returns:
- the reference
-
setReference
set record reference- Parameters:
newReference
- the reference to set- Returns:
- same object to permit progressive setters
-
getAlias
get record alias name- Returns:
- the alias
-
setAlias
set record alias name- Parameters:
alias
- the alias to set- Returns:
- same object to permit progressive setters
-
isNetworkAddress
public boolean isNetworkAddress()Does record represent a network address- Returns:
- whether record is a network address
-
setNetworkAddress
public void setNetworkAddress(boolean isAddress) Set whether record represents a network address- Parameters:
isAddress
- the isAddress to set
-