Package jline.lang
Class Chain
java.lang.Object
jline.lang.Element
jline.lang.NetworkElement
jline.lang.Chain
- All Implemented Interfaces:
Serializable,Copyable
A class modelling a set of reachable classes for a given job (a chain)
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a job class to this chain.voidaddStation(Station station) Adds a station to this chain.Gets the list of job classes in this chain.voidSets the name of this chain.voidSets the number of visits that a job in this chain makes to a station in a specific class.
-
Field Details
-
stations
-
classes
-
classnames
-
visits
-
classIndexMap
-
stationIndexMap
-
completes
-
njobs
-
-
Constructor Details
-
Chain
Creates a new chain with the specified name. Initializes empty collections for stations, classes, and visit matrices.- Parameters:
neName- the name for this chain
-
Chain
Creates a new chain with the specified name, job classes, and stations. Initializes visit, completion, and job count matrices based on the provided classes and stations.- Parameters:
neName- the name for this chainclasses- the list of job classes in this chainstations- the list of stations visited by this chain
-
-
Method Details
-
addClass
Adds a job class to this chain. Expands the visit, completion, and job count matrices if the class is new.- Parameters:
jobclass- the job class to add to this chain
-
addStation
Adds a station to this chain. Expands the visit, completion, and job count matrices if the station is new.- Parameters:
station- the station to add to this chain
-
setName
Sets the name of this chain. -
setVisits
Sets the number of visits that a job in this chain makes to a station in a specific class.- Parameters:
jobclass- the job class making the visitsstation- the station being visitedval- the number of visits
-
getClasses
Gets the list of job classes in this chain.- Returns:
- the list of job classes
-