1 /*
2  * sys-emu - A system emulator for tutorials
3  * Copyright (C) 2018 - 2019 osdevelopment-info
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU Affero General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU Affero General Public License for more details.
14  *
15  * You should have received a copy of the GNU Affero General Public License
16  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
17  */
18 package info.osdevelopment.sysemu.system
19 
20 import java.util.UUID
21 import java.util.logging.Logger
22 
23 object System {
24 
25   def apply() = {
26     new System()
27   }
28 
29 }
30 
31 /**
32   * A system (emulated computer) with a given set of hardware.
33   *
34   */
35 @throws[IllegalArgumentException]
36 class System() {
37 
38   val uuid = UUID.randomUUID()
39 
40   private val log = Logger.getLogger(classOf[System].getName)
41 
42 }
Line Stmt Id Pos Tree Symbol Code
26 714 907 - 919 Apply info.osdevelopment.sysemu.system.System.<init> new System()
38 715 1069 - 1086 Apply java.util.UUID.randomUUID java.util.UUID.randomUUID()
40 717 1108 - 1149 Apply java.util.logging.Logger.getLogger java.util.logging.Logger.getLogger(classOf[info.osdevelopment.sysemu.system.System].getName())
40 716 1125 - 1148 Apply java.lang.Class.getName classOf[info.osdevelopment.sysemu.system.System].getName()