code
stringlengths
1
2.01M
repo_name
stringlengths
3
62
path
stringlengths
1
267
language
stringclasses
231 values
license
stringclasses
13 values
size
int64
1
2.01M
// -*- Java -*- /*! * @file GAEConnector.java * @date $Date$ * * $Id$ */ import jp.go.aist.rtm.RTC.Manager; import jp.go.aist.rtm.RTC.RTObject_impl; import jp.go.aist.rtm.RTC.RtcDeleteFunc; import jp.go.aist.rtm.RTC.RtcNewFunc; import jp.go.aist.rtm.RTC.RegisterModuleFunc; import jp.go.aist.rtm.RTC.u...
100uhaco
trunk/RTC/java/GAEConnector/GAEConnector.java
Java
asf20
1,667
title GAEConnector cd C:.\GAEConnector set "CLASSPATH=.;%RTM_JAVA_ROOT%\jar\OpenRTM-aist-1.0.0.jar;%RTM_JAVA_ROOT%\jar\commons-cli-1.1.jar;C:.\lib\commons-codec-1.4.jar;C:.\lib\commons-httpclient-3.1.jar;C:.\lib\commons-logging-1.1.1.jar" java GAEConnectorComp
100uhaco
trunk/RTC/java/GAEConnector/classes/GAEConnector.bat
Batchfile
asf20
263
#include <NTP.h> #include <DateTime.h> #include <ASocket.h> #include <Client.h> #include <Ethernet.h> #include <Server.h> #include <PString.h> #include <Dhcp.h> #include <Dns.h> #include <string.h> #include <WString.h> //MAC ID\uff08\u5404\u30b7\u30fc\u30eb\u30c9\u306b\u8a18\u8f09\uff09 #include "WProgram.h" void setu...
100uhaco
trunk/Arduino/Sender/applet/Sender.cpp
C++
asf20
8,185
#include <NTP.h> #include <DateTime.h> #include <ASocket.h> #include <Client.h> #include <Ethernet.h> #include <Server.h> #include <PString.h> #include <Dhcp.h> #include <Dns.h> #include <string.h> #include <WString.h> //MAC ID(各シールドに記載) byte mac[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; //ipが通ったか boolean ipAcquire...
100uhaco
trunk/Arduino/Sender/Sender.pde
Processing
asf20
7,104
#include <Ethernet.h> #include <WString.h> #include <ASocket.h> #include <Client.h> #include <Server.h> #include <PString.h> #include <Dhcp.h> #include <Dns.h> #include <string.h> #include <UdpBytewise.h> //RTC用ステータスコード #define RTC_ON_INITIALIZE 0 #define RTC_ON_SHUTDOWN 1 #define RTC_ON_STARTUP 2 #define RTC_ON_...
100uhaco
trunk/Arduino/Sender_RTC/Sender_RTC.pde
Processing
asf20
7,407
window.site_data = {};window.site_data.settings = {"MEDIA_URL": "/media/1/"};
100uhaco
trunk/.dynamic_media/mediautils-site_data.js
JavaScript
asf20
77
var LANGUAGE_CODE = "de"; var LANGUAGE_BIDI = false; /* gettext library */ var catalog = new Array(); function pluralidx(count) { return (count == 1) ? 0 : 1; } function gettext(msgid) { var value = catalog[msgid]; if (typeof(value) == 'undefined') { return msgid; } else { return (typeof(value) == 's...
100uhaco
trunk/.dynamic_media/mediautils-lang-de.js
JavaScript
asf20
1,017
var LANGUAGE_CODE = "en"; var LANGUAGE_BIDI = false; /* gettext library */ var catalog = new Array(); function pluralidx(count) { return (count == 1) ? 0 : 1; } function gettext(msgid) { var value = catalog[msgid]; if (typeof(value) == 'undefined') { return msgid; } else { return (typeof(value) == 's...
100uhaco
trunk/.dynamic_media/mediautils-lang-en.js
JavaScript
asf20
1,017
# -*- coding: utf-8 -*- #!/bin/env python import socket import urllib import urllib2 ######################################################################### ##-backup_csvスクリプトの使用方法について- ## ##以下で実行されます。 ##>backup("ID","PASS", min, max ) ## 各パラメータについて ## ID,PASS ## 100uhacoプロジェクトに使用しているもの ## ...
100uhaco
trunk/doc/backup-tool/backup_csv.py
Python
asf20
2,412
# -*- coding: utf-8 -*- #!/bin/env python import socket import urllib import urllib2 import xml.dom.minidom ######################################################################### ##-backupスクリプトの使用方法について- ## ##以下で実行されます。 ##>backup("ID","PASS", min, max ) ## 各パラメータについて ## ID,PASS ## 100uhaco...
100uhaco
trunk/doc/backup-tool/backup.py
Python
asf20
2,913
#clock { background-color:red; color:white; }
0corrina-kmltreeclone
examples/remote.css
CSS
bsd
53
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <title>kmlLoaded Event</title> <script type="text/javascript" src="http://www.google.com/jsapi?key=ABQIAAAAbEBR9v0lqBFdTfOcbe5WjRQPjtdHQ3xdBuNAR-KDFOW1mqdVsRRmZhmrl-MOSGS44M9Gug9FdssEgQ"></scrip...
0corrina-kmltreeclone
examples/kmlLoaded.html
HTML
bsd
2,771
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <title>kmlLoaded Event</title> <script type="text/javascript" src="http://www.google.com/jsapi?key=ABQIAAAAbEBR9v0lqBFdTfOcbe5WjRQPjtdHQ3xdBuNAR-KDFOW1mqdVsRRmZhmrl-MOSGS44M9Gug9FdssEgQ"></scrip...
0corrina-kmltreeclone
examples/clickEvents.html
HTML
bsd
2,995
$(document).one('ready', function(){ // Append stylesheets addLinks([ 'http://google-code-prettify.googlecode.com/svn/trunk/src/prettify.css', 'examples.css', '../dist/kmltree.css' ]); $.ajaxSetup({ dataType: 'script' }); $.when( $.ajax({url: 'http://ge...
0corrina-kmltreeclone
examples/examples.js
JavaScript
bsd
2,177
html, body { margin:0px; padding:0px; background-color:#4C6882; } .content { margin-left:auto; margin-right:auto; width:90%; background-color:white; border:solid 2px #314253; border-top:none; } #tree { float:left; padding:10px; width:35%; height: 650px; overflow...
0corrina-kmltreeclone
examples/examples.css
CSS
bsd
1,282
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <title>Combo KML Example</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js" type="text/javascript"></script> <script src="examples.js" type="text/javascr...
0corrina-kmltreeclone
examples/refresh.html
HTML
bsd
3,073
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <title>Combo KML Example</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js" type="text/javascript"></script> <script src="examples.js" type="text/javascr...
0corrina-kmltreeclone
examples/comboExample.html
HTML
bsd
2,014
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <title>Simple Example</title> <script type="text/javascript" src="http://www.google.com/jsapi?key=ABQIAAAAbEBR9v0lqBFdTfOcbe5WjRQPjtdHQ3xdBuNAR-KDFOW1mqdVsRRmZhmrl-MOSGS44M9Gug9FdssEgQ"></script...
0corrina-kmltreeclone
examples/apiVersion.html
HTML
bsd
1,855
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <title>Popup Whitelist</title> <script type="text/javascript" src="http://www.google.com/jsapi?key=ABQIAAAAbEBR9v0lqBFdTfOcbe5WjRQPjtdHQ3xdBuNAR-KDFOW1mqdVsRRmZhmrl-MOSGS44M9Gug9FdssEgQ"></scrip...
0corrina-kmltreeclone
examples/refreshWithWhitelist.html
HTML
bsd
4,470
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <title>Simple Example</title> <script type="text/javascript" src="http://www.google.com/jsapi?key=ABQIAAAAbEBR9v0lqBFdTfOcbe5WjRQPjtdHQ3xdBuNAR-KDFOW1mqdVsRRmZhmrl-MOSGS44M9Gug9FdssEgQ"></script...
0corrina-kmltreeclone
examples/hello.html
HTML
bsd
2,534
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <title>Panoramio and Youtube Example</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js" type="text/javascript"></script> <script src="examples.js" type="...
0corrina-kmltreeclone
examples/panoramio.html
HTML
bsd
3,129
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <title>Combo KML Example</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js" type="text/javascript"></script> <script src="examples.js" type="text/javascr...
0corrina-kmltreeclone
examples/selection.html
HTML
bsd
2,964
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <title>displayEnhancedContent option</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js" type="text/javascript"></script> <script src="examples.js" type="...
0corrina-kmltreeclone
examples/displayEnhancedContent.html
HTML
bsd
1,839
<h1>kmltree examples</h1> <ul> <li><a href="comboExample.html">combo example</a></li> <li><a href="refresh.html">load / refresh any kml file</a></li> <li><a href="includedLayers.html">managing included Google Earth layers and options like 3d terrain</a></li> <li><a href="panoramio.html">Youtube and ...
0corrina-kmltreeclone
examples/index.html
HTML
bsd
430
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <title>Managing Included Layers (Street View, Borders, etc...)</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js" type="text/javascript"></script> <scrip...
0corrina-kmltreeclone
examples/includedLayers.html
HTML
bsd
2,494
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title></title> <style type="text/css" media="screen"> html, body { margin:0; padding:0; font-size:0.9em; } .kmlTreeReset { font-family...
0corrina-kmltreeclone
src/iframe.html
HTML
bsd
8,614
// src/kmltree.js // I don't like documentation being in more than one place, and I couldn't // find any javascript documentation tools that I found satisfactory. So, // docs can be found on the project page and should be kept up to date there: // http://code.google.com/p/kmltree/wiki/ApiReference var kmltree = (func...
0corrina-kmltreeclone
src/kmltree.js
JavaScript
bsd
58,638
// src/kmldom.js // returns a jquery object that wraps the kml dom kmldom = (function(){ return function(kml){ if( window.ActiveXObject && window.GetObject ) { var dom = new ActiveXObject( 'Microsoft.XMLDOM' ); dom.loadXML(kml); return jQuery(dom); } ...
0corrina-kmltreeclone
src/kmldom.js
JavaScript
bsd
503
/* * Copyright © 2007 Dominic Mitchell * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of cond...
0corrina-kmltreeclone
src/URI.js
JavaScript
bsd
9,617
/** * * Base64 encode / decode * http://www.webtoolkit.info/ * **/ var Base64 = { // private property _keyStr : "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", // public method for encoding encode : function (input) { var output = ""; var chr1, chr2, chr3, enc1, enc2, enc3, enc4; ...
0corrina-kmltreeclone
src/base64.js
JavaScript
bsd
3,003
var enableGoogleLayersControl = (function(){ var setVisibility = function(kmlObject, toggle, ge){ var id = kmlObject.getId(); if(id && id.match(/^LAYER/)){ ge.getLayerRoot().enableLayerById(ge[id], toggle); }else{ var options = ge.getOptions(); switch(id)...
0corrina-kmltreeclone
src/googleLayers.js
JavaScript
bsd
2,304
var kmltreeManager = (function(){ that = {}; var trees = []; var ge; var cache = {}; function init(earthInstance){ ge = earthInstance; google.earth.addEventListener(ge, 'balloonopening', balloonOpening); google.earth.addEventListener(ge, 'balloonclose', balloonClose); ...
0corrina-kmltreeclone
src/kmltreeManager.js
JavaScript
bsd
11,725
=opacity( $pct ) opacity: $pct/100 -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=#{$pct})" filter: alpha(opacity='#{$pct}') = user-select( $user_select ) -moz-user-select: $user_select -khtml-user-select: $user_select -webkit-user-select: $user_select user-select: $user_select // from h...
0corrina-kmltreeclone
src/_mixins.sass
Sass
bsd
942
// src/tmpl.js // Simple JavaScript Templating // John Resig - http://ejohn.org/ - MIT Licensed (function(){ var cache = {}; this.tmpl = function tmpl(str, data){ // Figure out if we're getting a template, or if we need to // load the template - and be sure to cache the result. var fn = !/\W/.test(...
0corrina-kmltreeclone
src/tmpl.js
JavaScript
bsd
1,215
@import sprites.sass @import mixins.sass div.kmltree font-family: sans-serif font-size: 12px +user-select(none) li +user-select(none) .toggler, .expander +user-select(none) p.error +user-select(text) ul list-style: none padding-left: 18px li ul padding-top: 5p...
0corrina-kmltreeclone
src/main.sass
Sass
bsd
6,333
module('kmlTree'); (function(){ function triggerBalloon(ge, url){ var f = ge.getElementByUrl(url); if(!f){ throw('could not find feature with url ', url); } var balloon = ge.createHtmlStringBalloon(''); balloon.setFeature(f); ge.setBalloon(balloon); ...
0corrina-kmltreeclone
tests/kmltree.js
JavaScript
bsd
121,528
(function(){ google.load("earth", "1"); // earthTest and earthAsyncTest // ============================ // // Use earthTest rather than QUnit::test for testing functionality that // requires an instance of the Google Earth Plugin and/or the // earth-api-utility-library. // ...
0corrina-kmltreeclone
tests/qunit_extensions.js
JavaScript
bsd
3,536
module('enableGoogleLayersControl'); (function(){ // given the name of a file within examples/kml, creates an absolute url // to it, appending ?r=revision if necessary function example(filename){ var url = '../examples/kml/' + filename; // var url = 'http://kmltree.googlecode.com/hg/e...
0corrina-kmltreeclone
tests/googleLayers.js
JavaScript
bsd
8,884
module('micro-templating'); test("list template", 1, function(){ template = [ "<ul>", "<% for (var i=0; i < users.length; i++) { %>", "<li><%= users[i].name %></li>", "<% } %>", "</ul>" ]; template = template.join(""); list_users = tmpl(template);...
0corrina-kmltreeclone
tests/tmpl.js
JavaScript
bsd
445
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>kmltree Test Suite</title> <!-- You will need these 4 files included in your test case --> <link rel="stylesheet" href="http://js-ci-tools.appspot.com/...
0corrina-kmltreeclone
tests/index.html
HTML
bsd
2,352
require 'rake/clean' CLEAN.include('dist/kmltree.css', 'dist/kmltree.min.js', 'dist/kmltree.js', 'dist/images', 'src/_sprites.sass', 'sprites-url') CLOBBER.include('compiler') SRC = FileList[ 'src/kmltreeManager.js', 'src/base64.js', 'src/tmpl.js', 'src/kmldom.js', 'src/URI.js', 'src/kmltree.js', 'src/googleLayers.js...
0corrina-kmltreeclone
Rakefile
Ruby
bsd
1,690
<?/* PHP */?> <?/* end of PHP */?>
03-k64
trunk/index.php
PHP
gpl2
35
/* JS */
03-k64
trunk/js/main.js
JavaScript
gpl2
8
/* CSS */
03-k64
trunk/css/main.css
CSS
gpl2
9
#!/bin/sh # Parameters passed: # $1: full path to the installation package (xxx.pkg) # $2: full path to destination (/) # $3: mountpoint of destination volume (/) # $4: root directory for current system folder (/) # Uninstall previous null driver if [ -d /System/Library/Extensions/ez430rf2500.kext ] then rm -rf /Sys...
100jed-lukemccurlie
package/Resources/postflight
Shell
gpl2
371
{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf360 {\fonttbl\f0\fswiss\fcharset0 Helvetica;\f1\fnil\fcharset0 LucidaGrande;} {\colortbl;\red255\green255\blue255;} {\*\listtable{\list\listtemplateid1\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*...
100jed-lukemccurlie
package/Resources/Welcome.rtf
Rich Text Format
gpl2
4,718
#!/bin/sh set -e # Force root if [ $EUID -ne 0 ]; then echo "You must be root" exit 1 fi TOOLCHAIN_VERSION=20110716 PREFIX=/usr/local/msp430-uniarch-$TOOLCHAIN_VERSION PACKAGE_ROOT=package/PackageRoot # Add new gcc to path export PATH=$PREFIX/bin:$PATH : <<ENDREM Use these to wrap around code you want to comme...
100jed-lukemccurlie
build.sh
Shell
gpl2
3,371
package constants; import client.Command; public class Constants { public static enum Color{ blue, red, green, cyan, magenta, orange, pink, yellow } // Order of enum important for determining opposites public static enum dir { N, W, E, S }; public static dir oppositeDir(dir d){ if(d== d...
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/constants/Constants.java
Java
oos
495
package client; import java.util.LinkedList; import constants.Constants.*; public class Command { static { LinkedList< Command > cmds = new LinkedList< Command >(); for ( dir d : dir.values() ) { cmds.add( new Command( d ) ); } for ( dir d1 : dir.values() ) { for ( dir d2 : dir.values() ) { if (...
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/client/Command.java
Java
oos
1,265
package client; public enum Action { MoveEast, MoveWest, MoveNorth, MoveSouth, PushNW, PushW, PushSW, PushS, PushSE, PushE, PushNE, PushN, PullNW, PullW, PullSW, PullS, PullSE, PullE, PullNE, PullN, NoOp }
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/client/Action.java
Java
oos
252
package client.planners; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.HashMap; import java.util.PriorityQueue; import java.util.Random; import utils.FindFreeSpaces; import utils.GoalPriority; import constants.Constants; import constants.Constants.dir; import Le...
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/client/planners/GoalCountPlanner.java
Java
oos
11,388
package client.planners; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedList; import java.util.PriorityQueue; import java.util.Random; import java.util.Set; import constants.Constants.dir; ...
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/client/planners/ProgressionWithHeuristic.java
Java
oos
6,251
package client.planners; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.PriorityQueue; import java.util.Random; import utils.Utils; import LevelObjects.Agent; import LevelObjects.Box; import LevelObjects.Field; import LevelObjects.Goal; import LevelObjects.Level; ...
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/client/planners/PrioritizedGoalPlanner.java
Java
oos
12,165
package client.planners; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.PriorityQueue; import java.util.Random; import agent.objectives.DockABox; import agent.objectives.GoalABox; import agent.objecti...
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/client/planners/ClientPlanner.java
Java
oos
3,702
package client.planners; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.PriorityQueue; import java.util.Random; import utils.FOMAUtils; import utils.PrioriGoalUtils; import utils.Utils; import LevelObjects.Agent; import LevelObjects.Box; import LevelObjects.Field;...
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/client/planners/FOMAPrioritizedGoalPlanner.java
Java
oos
11,802
package client.planners; public interface Planner { public String getName(); public void makePlan(); }
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/client/planners/Planner.java
Java
oos
119
package client.planners; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedList; import java.util.PriorityQueue; import java.util.Random; import java.util.Set; import utils.AStarField; import constants.Constants.dir; import client.Co...
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/client/planners/SimplePlanner.java
Java
oos
10,820
package client.planners; import java.util.Random; import constants.Constants.dir; import LevelObjects.Agent; import LevelObjects.Box; import LevelObjects.Field; import LevelObjects.Goal; import LevelObjects.Level; import aStar.Pathfinding; public class AStarPlanner implements Planner { Level level; Random rand...
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/client/planners/AStarPlanner.java
Java
oos
928
package client; import LevelObjects.Agent; import LevelObjects.Box; import LevelObjects.Goal; public class Desire { public Agent agent; public Box box; public Goal goal; boolean completed; public Desire(Agent a, Box b) { this.agent = a; this.box = b; } public Desire(Agent a, Box b, Goal g) { this.a...
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/client/Desire.java
Java
oos
369
package client.messages; import java.util.List; import LevelObjects.Field; public class MoveRequest extends Message { // when can the agent move again public int WaitUntil; // what fields are blocked in the period public List<Field> blokedFields; }
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/client/messages/MoveRequest.java
Java
oos
276
package client.messages; public class Response extends Message { // Is the agent able to help? public boolean Acknowledged; // The original message public Message OriginalRequest; }
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/client/messages/Response.java
Java
oos
201
package client.messages; import LevelObjects.Agent; public abstract class Message { public Agent fromAgent; public Agent toAgent; }
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/client/messages/Message.java
Java
oos
149
package client.messages; import LevelObjects.Box; public class MoveBoxRequest extends MoveRequest { // What box needs to be moved public Box box; // Should the box be removed from a goal to enable a solution public boolean removeFromGoal; }
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/client/messages/MoveBoxRequest.java
Java
oos
266
package client; import java.awt.Dimension; import java.awt.Font; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReade...
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/client/GuiClient.java
Java
oos
9,836
package client; import java.util.Arrays; import java.util.Scanner; public class Output { private static Scanner scan = new Scanner(System.in); /*public Output() { scan = new Scanner(System.in); }*/ public static boolean[] Send(Command[] commands) { // System.err.println("Sending: [" + Arr...
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/client/Output.java
Java
oos
821
package client; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.Map; import constants.Constants.Color; import constants.Constants.dir; import ...
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/client/Parser.java
Java
oos
3,549
package client.clients; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Random; import client.Command; import client.Output; import client.Parser; import LevelObjects.Agent; import LevelObjects.Box; import LevelObjects.Field; import LevelObjects.Level; ...
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/client/clients/SmartRandomWalkClient.java
Java
oos
2,909
package client.clients; import java.io.IOException; import javax.swing.text.StyledEditorKit.BoldAction; import agent.objectives.DockABox; import agent.objectives.Objective; import constants.Constants; import constants.Constants.dir; import utils.Communication; import utils.Timer; import utils.Utils; ...
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/client/clients/Client.java
Java
oos
8,940
package client.clients; import java.io.*; import java.util.*; import client.Command; public class RandomWalkClient { private static Random rand = new Random(); public class Agent { // We don't actually use these for Randomly Walking Around private char id; private String color; Agent( char id, String col...
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/client/clients/RandomWalkClient.java
Java
oos
2,239
package datastructures; import java.util.ArrayList; import java.util.Collection; import java.util.List; import client.Command; import LevelObjects.Box; import LevelObjects.Field; public class MoveActionSequence extends ActionSequence { private Field startField; private Field endField; public ...
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/datastructures/MoveActionSequence.java
Java
oos
790
package datastructures; import LevelObjects.Field; public class MoveBoxActionSequence extends ActionSequence { private Field agentLocation; private Field boxLocation; private Field targetLocation; public Field getAgentLocation() { return agentLocation; } public void setAgentLocation(Field agen...
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/datastructures/MoveBoxActionSequence.java
Java
oos
701
package datastructures; import LevelObjects.Field; public class GoalActionSequence extends ActionSequence { private Field agentStartLocation; private Field agentEndField; private Field boxStartLocation; private Field boxEndLocation; public Field getBoxStartLocation() { return boxStartLocatio...
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/datastructures/GoalActionSequence.java
Java
oos
965
package datastructures; public class FieldBlockedChange { public int time; public boolean changeToBlocked; public FieldBlockedChange(int time, boolean c){ this.time = time; this.changeToBlocked = c; } }
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/datastructures/FieldBlockedChange.java
Java
oos
217
package datastructures; import java.util.ArrayList; import LevelObjects.Agent; import LevelObjects.Field; public class FieldInState extends ObjectInState { public ArrayList<FieldBlockedChange> blockedTimeChangeIndexes; public FieldInState(Field f) { super(); this.f = f; blockedTimeChangeIndexes = new Array...
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/datastructures/FieldInState.java
Java
oos
1,376
package datastructures; import java.util.ArrayList; import LevelObjects.Field; import client.Command; public abstract class ActionSequence { private ActionSequence parent; public ArrayList<Field> fields; public ActionSequence getParent() { return parent; } public void setParent(ActionSequ...
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/datastructures/ActionSequence.java
Java
oos
574
package datastructures; import LevelObjects.Agent; import LevelObjects.Field; public class AgentInState extends ObjectInState { public Agent a; public AgentInState(Agent a, Field f) { super(); this.a = a; this.f = f; } }
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/datastructures/AgentInState.java
Java
oos
237
package datastructures; import java.util.ArrayList; import LevelObjects.Goal; import client.Command; public class State implements Comparable<State> { public int g; public int f; public ArrayList<AgentInState> agents; public ArrayList<BoxInState> boxes; public ArrayList<FieldInState> fields; public State p...
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/datastructures/State.java
Java
oos
1,302
package datastructures; import LevelObjects.Box; import LevelObjects.Field; public class BoxInState extends ObjectInState { public Box b; public BoxInState(Box b, Field f) { super(); this.b = b; this.f = f; } }
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/datastructures/BoxInState.java
Java
oos
233
package datastructures; import LevelObjects.Field; public abstract class ObjectInState implements Comparable<ObjectInState> { public Field f; @Override public int compareTo(ObjectInState o) { if (this.f.x != o.f.y) { return this.f.x-o.f.x; } else{ return this.f.y-o.f.y; } } }
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/datastructures/ObjectInState.java
Java
oos
307
package datastructures; import java.util.ArrayList; import LevelObjects.*; public class BoxCost { public Box box; public int cost; public ArrayList<GoalCost> goalCosts; public BoxCost() { goalCosts = new ArrayList<GoalCost>(); } }
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/datastructures/BoxCost.java
Java
oos
265
package datastructures; import LevelObjects.Agent; import LevelObjects.Box; import LevelObjects.Field; public class StateGoal { public Field agentToPos; public Field boxToPos; public BoxInState box; public AgentInState agent; public boolean isMoveToBoxGoal; public boolean isClearPathGoal; public int nextGoalI...
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/datastructures/StateGoal.java
Java
oos
330
package datastructures; import LevelObjects.Field; import client.Command; public class GoalSequenceNode implements Comparable<GoalSequenceNode> { public GoalSequenceNode parent; public Field boxLocation; public Field agentLocation; public Command action; public int timeStep; public int f; public int g; pub...
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/datastructures/GoalSequenceNode.java
Java
oos
603
package datastructures; import LevelObjects.*; public class GoalCost { public GoalCost(Goal goal, int cost) { this.cost = cost; this.goal = goal; } public Goal goal; public int cost; }
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/datastructures/GoalCost.java
Java
oos
212
package utils; public class Timer { private long _time; public volatile long time; public Timer() { time = 0; _time = System.currentTimeMillis(); } public void takeTime() { time = 0; _time = System.currentTimeMillis(); } public long stop() { time = System.currentTimeMillis()...
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/utils/Timer.java
Java
oos
1,119
package utils; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Queue; import java.util.Set; import LevelObjects.Field; public class BFS { public enum NodeColour { WHITE, GRAY, BLACK } privat...
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/utils/BFS.java
Java
oos
3,792
package utils; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import LevelObjects.Agent; import LevelObjects.Box; import LevelObjects.Field; import LevelObjects.Goal; import LevelObjects.Level; public class GoalPriority { /** * Goal prioritizat...
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/utils/GoalPriority.java
Java
oos
8,627
package utils; import constants.Constants.dir; import LevelObjects.Field; import client.Command; public class AStarField implements Comparable<AStarField> { public Field field; public int g; public int f; public int h; public Command c; public int timeStep; public AStarField(Field field...
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/utils/AStarField.java
Java
oos
526
package utils; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedList; import java.util.List; import java.util.PriorityQueue; import java.util.Queue; import java.util.Set; import constants.Cons...
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/utils/Utils.java
Java
oos
35,291
package utils; import java.util.ArrayList; import LevelObjects.Agent; import LevelObjects.Box; import LevelObjects.Field; import LevelObjects.Level; public class Communication { /** * find agent to move a given box that might be in the way for another agent * @param box * @param level * @retur...
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/utils/Communication.java
Java
oos
1,087
package utils; import java.util.ArrayList; import java.util.Collection; import java.util.List; import constants.Constants.dir; import LevelObjects.Agent; import LevelObjects.Box; import LevelObjects.Field; import LevelObjects.Level; import client.Command; import datastructures.ActionSequence; import da...
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/utils/Moves.java
Java
oos
3,015
package utils; import java.util.ArrayList; import LevelObjects.Field; import client.Command; import datastructures.AgentInState; import datastructures.BoxInState; import datastructures.FieldInState; import datastructures.State; public class PrioriGoalUtils { public static ArrayList<FieldInState> getBlockedFields(S...
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/utils/PrioriGoalUtils.java
Java
oos
990
package utils; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedList; import java.util.PriorityQueue; import java.util.Set; import utils.Utils.HeuristicType; import LevelObjects.Agent; import LevelObjects....
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/utils/FOMAUtils.java
Java
oos
18,122
package utils; import java.util.ArrayList; import java.util.List; import LevelObjects.Box; import LevelObjects.Field; import LevelObjects.Level; public class FindFreeSpaces { public static void FindSpaces(Level level){ System.err.println("------------------Fields------------------"); Lis...
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/utils/FindFreeSpaces.java
Java
oos
733
package aStar; import java.util.ArrayList; import java.util.Collections; import java.util.HashSet; import java.util.LinkedList; import java.util.PriorityQueue; import java.util.Queue; import java.util.Set; import LevelObjects.*; import client.Command; import constants.Constants.*; public class Pathfinding { // Sho...
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/aStar/Pathfinding.java
Java
oos
4,459
package LevelObjects; import java.io.Serializable; import constants.Constants; import constants.Constants.Color; public class Box implements Comparable<Box> { private char id; // stored as lowercase so we can easily compare with goals private Color color; private Field atField; public Box(char id, Color co...
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/LevelObjects/Box.java
Java
oos
873
package LevelObjects; import java.awt.List; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.HashMap; import java.util.LinkedList; import java.util.Queue; import java.util.Random; import agent.objectives.*; import agent.planners.AgentPlanner; import utils.Communicati...
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/LevelObjects/Agent.java
Java
oos
10,171
package LevelObjects; import java.util.ArrayList; public class Level { public ArrayList<Agent> agents = new ArrayList<Agent>(); public ArrayList<Box> boxes = new ArrayList<Box>(); public ArrayList<Field> fields = new ArrayList<Field>(); public ArrayList<Goal> goals = new ArrayList<Goal>(); public Field[][] fiel...
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/LevelObjects/Level.java
Java
oos
472
package LevelObjects; import java.util.Comparator; import constants.Constants.dir; public class Field implements Comparator<Field> { // Order of directions. /*public static enum dir { N, W, E, S };*/ // Example: neighbours[Constants.Constants.dir.N] public Field[] neighbours = new Field[4]; public int...
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/LevelObjects/Field.java
Java
oos
1,301
package LevelObjects; import java.util.ArrayList; public class Conflict { private Agent helpAgent; private Object obstacle; private Box moveaBox; private int priority; public ArrayList<Field> avoidFields = new ArrayList<Field>(); public Conflict(Agent helpAgent, ArrayList<Field> avoidFields, Object...
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/LevelObjects/Conflict.java
Java
oos
1,700
package LevelObjects; public class Goal extends Field implements Comparable<Goal> { private char id; public int priority; public char getId() { return id; } public int getPriority() { return priority; } public void setPriority(int priority){ this.priority = priority; } public Goal(char id, i...
02285-ai
trunk/ 02285-ai --username johan.beusekom@gmail.com/AI project/src/LevelObjects/Goal.java
Java
oos
701