C
- a class implementing IDevs
or
ISimulator
.public interface Factory<C extends INamed>
Devs
class
and the
Simulator
class. Children of these classes then
should provide their
own implementation of this factory so that they can be instantiated through
this process too.
The reason why a Factory design pattern is needed is because of the use of overriding methods at the construction, for instance for adding an atomic model to the system.
Modifier and Type | Method and Description |
---|---|
C |
create(Object... args)
The actual factory method.
|
C create(Object... args)
IDevs
or
ISimulator
is implemented. Children of
these interfaces should only be instantiated using this method.args
- the arguments to the constructor and this method.
args[0]
should always be the name of the new
instance.Copyright © 2017–2019 UniversitĂ© CĂ´te d'Azur, CNRS, I3S. All rights reserved.