Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

53
LINES

< > BotCompany Repo | #1005284 // User's Name [Include]

JavaX fragment (include)

concept UserName {
  S name;
  bool usable;
}

concept Line {
  S text;
  new Ref<LineIdea> idea;

  *() {}
  *(S *text) { change(); }
}

concept UserLine extends Line {
  *() {}
  *(S text) { super(text); }
}

concept BotLine extends Line {
  *() {}
  *(S text, LineIdea idea) {
    super(text);
    this.idea.set(idea);
  }
}

concept LineIdea {}

concept LError extends LineIdea {
  S stackTrace;
  
  *() {}
  *(Throwable e) { stackTrace = getStackTrace(e); change(); }
}

concept LGreet extends LineIdea {
  new Ref<UserName> userName;
  
  *() {}
  *(UserName u) { userName.set(u); }
}

concept LWhatsYourName extends LineIdea {}

concept LIDontUnderstand extends LineIdea {}

concept Dialog {
  new RefL<Line> lines;
}

static Dialog dialog() {
  ret unique(Dialog);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1005284
Snippet name: User's Name [Include]
Eternal ID of this version: #1005284/1
Text MD5: 29852741810ca8a38290b046f9185866
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-10-29 18:03:50
Source code size: 829 bytes / 53 lines
Pitched / IR pitched: No / No
Views / Downloads: 502 / 682
Referenced in: [show references]